i have created an .a5w page to upload images.
code to upload images
my project is in the web root in a folder called h_secure
the error message is
which i understand is a problem trying to find the location of the folder where the web project is stored.
in my project settings i have the following;
profile - homesecure and the profile settings;
1. webroot = C:\A5webroot\
2. targetfolder = h_secure
3. publishing type - LAN
4. aliases - the alias to the data is correct
i can publish and view the pages from the localhost.
not sure what else to add to try to help solve the problem.
any help appreciated.
thanks
richard
code to upload images
Code:
<%A5 dim msg as c = "" if eval_valid("cmd") If FileToUpload.filename<>"" if file.exists(Request.ApplicationRoot + "\\[PathAlias.Photos]")=.f. file.dir_create_recurse(Request.ApplicationRoot + "\\[PathAlias.Photos]") end if file.from_blob("[PathAlias.Photos]\\" + FileToUpload.filename, FileToUpload.data) dta="Image =" + "[PathAlias.Photos]\\" + FileToUpload.filename record_update("[PathAlias.ADB_Path]\titems.dbf","itemid="+quote(session.__protected__itemid),dta) msg = "<a href=\"/" + FileToUpload.filename + "\" target=\"_blank\">" + FileToUpload.filename + "</a> was uploaded<br /><br />" end if end if %>
the error message is
Code:
"Script Error Error:Script: /h_secure/upload.a5w line:15 file.from_blob("[PathAlias.Photos]\\" + FileToUpload.filename, FileToUpload. The system cannot find the path specified. [PathAlias.Photos]\why.jpg"
in my project settings i have the following;
profile - homesecure and the profile settings;
1. webroot = C:\A5webroot\
2. targetfolder = h_secure
3. publishing type - LAN
4. aliases - the alias to the data is correct
i can publish and view the pages from the localhost.
not sure what else to add to try to help solve the problem.
any help appreciated.
thanks
richard
Comment