Forums
This topic is locked
ASP Image upload, Resize and virtual web site
Posted 30 Apr 2003 21:06:57
1
has voted
30 Apr 2003 21:06:57 Sean Riley posted:
I had posted something in the ASP section, but thought it might be better here:ASP Image upload and virtual web site:
Using a dynamic path for images:
"E:\WEB\OTM2\Clients\" & UploadFormRequest("client" & "\Graphics\" & DatePart("YYYY", Date)"
On first run of my upload page. With a new client: client 5.
1st run error:
Can not create upload folder path: E:\WEB\OTM2\Clients\5\Graphics\2003\!
Maybe you don't have enough permissions
Please correct and try again
Yet when I look at the site, the directory structure is created, but no files in the directory.
So I run it again:
2nd run error:
Server.MapPath() error 'ASP 0172 : 80004005'
Invalid Path
E:\WEB\OTM2\../ScriptLibrary/incResizeAddOn.asp, line 391
The Path parameter for the MapPath method must be a virtual path. A physical path was used.
If I revert back to relative path:
"Clients\" & UploadFormRequest("client" & "\Graphics\" & DatePart("YYYY", Date)"
1st run error:
Can not create upload folder path: Clients\5!
Maybe you don't have enough permissions
Please correct and try again
Before the upgrade to 2.13 this was an error on line 199, where the folder creation is being done in ASP upload. None of these issues arise on my testing server where everything lives nicely under the wwwroot directory with no virtual sites.
IUSR and IWAM both have full control to the directory Clients and permissions set to inherit