Code

Discussion on Extended Image Upload for asp.net

Discussion on Extended Image Upload for asp.net

Cart 3 sales

intelliwins supports this item

Supported

3 comments found.

Nice idea! GLWS

Thank you very much.

The preview page is empty, and if you click “Remove frame” you are redirected to a spammy URL shortener. SPAM Really?

No , check the following link http://intelliwins.com/uploader

upload give error Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Access to the path 'D:\WEBDATA\intelliwins.com\img\4b9e4101-88e9-451e-9863-d82fbb5df776.jpg' is denied.

Exception Details: System.UnauthorizedAccessException: Access to the path ‘D:\WEBDATA\intelliwins.com\img\4b9e4101-88e9-451e-9863-d82fbb5df776.jpg’ is denied.

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6 and IIS 7, and the configured application pool identity on IIS 7.5) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate=”true”/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET access to a file, right-click the file in File Explorer, choose “Properties” and select the Security tab. Click “Add” to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

Source Error:

Line 27: { // If size is less than 9 mb Line 28: string AdsFile = Guid.NewGuid().ToString() + System.IO.Path.GetExtension(files.FileName); // GUID will give uploaded image a new unique name keeping the extension of the image. Line 29: files.SaveAs(Server.MapPath(”~/img/”) + AdsFile); //Path of the uploaded image stored Line 30: int res = save_upload(AdsFile, hdncolor.Value); //Save Vales to MS Access database Line 31: if (res > 0)

Well This is due to my Live demo server is not configured with write enabled folder which will allow it to upload files. It will not be a issue in local server or you can also configure it when uploaded to your own server. I have requested my service provider to do it soon

Syed it is fixed now. Check it.

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey