Alpha Five/11.0 Build/3381-4096
I have a file upload handler with the following simple test case code that is failing to save an uploaded file when the uploaded file is large.
It seems the upload works but then file.from_blob is failing. If anyone has run into this issue before I would love to here how you resolved it.
Some Info:
My web application Maximum POST body size (MB) is set to 1024 which should be more than enough.
file_upload.a5w
file_upload_handler.a5w
I am receiving a 500 Internal Server Error with an 'out of memory' error.
I have also tried using file.append() and receive the same error
I have a file upload handler with the following simple test case code that is failing to save an uploaded file when the uploaded file is large.
It seems the upload works but then file.from_blob is failing. If anyone has run into this issue before I would love to here how you resolved it.
Some Info:
My web application Maximum POST body size (MB) is set to 1024 which should be more than enough.
file_upload.a5w
Code:
<form id="fileUploader" method="post" enctype="multipart/form-data" action="handlers/file_upload_handler.a5w"> <input name="file" type="file" multiple=""> <input type="submit" value="Submit"/> </form>
Code:
<%a5 dim fileData as P=Request.Variables.file dim file_ext as C=lastword(fileData.fileName,".") dim upload_dir as C="c:/temp/" dim fullfilename as C=api_uuidcreate()+"."+file_ext dim absolute_file_path as C=upload_dir+fullfilename file.from_blob(absolute_file_path,fileData.data) if file.exists(absolute_file_path) then ?"Uploaded" else ?"Failed to upload" end if %>
I have also tried using file.append() and receive the same error
Code:
500 Internal Server Error Script Error Error:Script:" handlers/file_upload_handler.a5w" line:9 file.from_blob(absolute_file_path,fileData.data) Out of memory fileData.data subelement not found.
Comment