Admin file upload exception; temp file has no permissions

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
pj6284
Ensign (ENS)
Ensign (ENS)
Posts: 3
Joined: Fri Apr 03, 2009 3:09 pm

Admin file upload exception; temp file has no permissions

Post by pj6284 » Fri Apr 03, 2009 3:22 pm

Using Admin to upload an image for a product, I get the error "You did not upload a valid file" which comes from Admin/Products/Assets/UploadImage.aspx.cs, line 92. The reason it's failing is that the temp file created by the system from my image has zero permissions; in Unixese, it'd be "---------." No read, write, or execute permission for anybody -- period. Naturally, the next line of code that tries to manipulate the temp file throws an exception. (I opened the temp file with an image program -- it really is my JPG, just with a .tmp extension.)

So why is the system creating a temp file having no permissions for anyone? I probably have something misconfigured -- any idea what? The temp file is written to the Assets directory and is owned by ASPNET. Doing an 'ls -l' on it with Cygwin gives this:

$ ls -l
total 76
----------+ 1 ASPNET None 74423 Apr 2 19:19 9112c663ef544f99b2e6afe12a14c1c0.tmp <--- This is the temp file in question
drwxrwxrwx+ 2 ASPNET None 0 Apr 3 17:13 ProductImages

Thanks for any pointers.

pj6284
Ensign (ENS)
Ensign (ENS)
Posts: 3
Joined: Fri Apr 03, 2009 3:09 pm

Re: Admin file upload exception; temp file has no permissions

Post by pj6284 » Fri Apr 24, 2009 7:54 am

Figured it out -- "nevuh mind." Simple permissioning problem unrelated to AbleCommerce. I had tried a lot of weird permissioning things and had created a rat's nest. I cleaned out the junk and just granted ASPNET full control over the folder. (Perhaps not restrictive enough, but this app isn't in production yet.)

Post Reply