About once a year I think about using file upload, can't get it to work and find another way.

Not bug report this time. I've read the doc's over and over (and what I could find in archives) and I'm missing something.

Have C_BLOB(A4D_Upload) defined in compiler_web
Have filename extension set to txt

have following code snippet from a test file:

<%
if(form variables has("upload"))
        $aa := count uploads
        $ab := blob size(a4d_update)
        //$ac := get upload size(a4d_upload)
        dump locals
        dump form variables
end if
%>

<form name="form" action="http://mysite/4dcgi/tdbimport.a4d"; method="post" ENCTYPE="multipart/form-data">
        <input type="file" name="A4D_Upload">
        <input type="submit" name="upload" value="Upload">
</form>

Hit choose file button and locate file - okay

Hit update/submit button
        $aa reports 1 file
        $ab report blob size of zero (guess already cleared out)
$ac, after removing comment, errors out with Expecting a text expression pointing to A4D_Upload

Any command trying to use A4D_Upload as reference errors out.

For grins changed to A4D_Upload1, and that form variable is created and loaded with the headers and text of the file. Could use that, but would rather know what am I missing.

How does the blob A4D_Upload change to a reference to an upload? Nothing in form variable or local variable give me any indication that something was uploaded.

Still on 3.x, Mac OS X, Active4D running on client, Safari or FireFox


Steve Alex




_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to