Hello
I have the following code inserted into a a5w page to upload files to my server:
Yesterday this code was part of another page and was working fine. I came in this morning, and started to get the HTTP 500 error. The files are uploading without a problem, but now I receive the abovementioned error and no confirmation message saying that the file was uploaded. Addtionally, yesterday I was able to update records to my dbase, today the code isnt firing.
Does anyone have any ideas? I have read many threads and tried:
- turning off the http keep alive setting in App Server settings
- Changing Alias resolutions to be resolved at publish time via the settings
- exiting and re entering Alpha
- Updating my version of Alpha to the current build
- Deleting the guid.security settings file and republishing all files
Any assistance would be greatly appreciated
Cheers
Jason
I have the following code inserted into a a5w page to upload files to my server:
HTML Code:
<html> <%a5 dim msg as c = "" if eval_valid("cmd") dim fn as c fn = "[Images_Path]" + "\\"+ FiletoUpload.filename file.from_blob(fn,FileToUpload.data) msg = "hello"'"<a href=\"/" + FileToUpload.filename + "\" target=\"_blank\">" + FileToUpload.filename + "</a> was uploaded<br /><br />" tbl=table.open("attachment") tbl.enter_begin() tbl.Imagefilepath=fn tbl.Date= Now() tbl.Caseid = 16 tbl.Text = "This is a file" tbl.enter_end(.t.) tbl.close() end if %> <head> <title>File Upload example</title> </head> <body bgcolor="#ffffff"> <form action="<%A5 ? request.script_name %> " method="post" enctype="multipart/form-data"> <input type="file" name="FileToUpload" ><br > <input type="submit" name="cmd" value="Upload File"> </form> <%a5 ? msg %> <p> </p> </body> </html> <meta name="generator" content="Alpha Five HTML Editor Version 9 Build 2095-3264">
Does anyone have any ideas? I have read many threads and tried:
- turning off the http keep alive setting in App Server settings
- Changing Alias resolutions to be resolved at publish time via the settings
- exiting and re entering Alpha
- Updating my version of Alpha to the current build
- Deleting the guid.security settings file and republishing all files
Any assistance would be greatly appreciated
Cheers
Jason
Comment