[AWS] AWS: File upload, how does it work?
Michael Erdmann
michael.erdmann at snafu.de
Wed Aug 29 19:22:02 CEST 2007
Pascal Obry wrote:
> Hi Michael,
>
> First please use the mailing list when possible. We get many questions
> directly and it is hard to get some free time :) On the mailing list
> some other people would be able to reply in some cases.
Sorry, i was not ware of the list. Joined now :-)
>
>> how is the file upload working. I put into my HTML code the form
>> you mentioning in your documentation:
>>
>> <FORM enctype="multipart/form-data" ACTION=upload METHOD=POST>
>> File to process: <INPUT NAME=filename TYPE=FILE>
>> <INPUT TYPE=SUBMIT NAME=go VALUE="Send File">
>> </FORM>
>
> Good.
>
>> after receving the action /upload i am calling the
>>
>> if URI = "/upload" then
>> declare
>> A : AWS.Attachments.List;
>> E : AWS.Attachments.Element;
>> begin
>
> This is wrong. There is no attachment with the file upload. The name of
> the uploaded file on the server side can be retrieved with:
This was also surprising for me, but the attachment information provided
by the code seems the be correct.
Input URI/upload
Content_ID = <filename>
Filename = ./upload/0.ParadoxWB.pdf
upload command recevied
>
> Parameters.Get (P_List, "filename")
>
> If you need to keep it after the callback you need to explicitly copy or
> move it in another place as it will be removed.
>
> Have a look at the regtests/upload*.adb files.
okay; i will do so!
>
> Pascal.
>
More information about the AWS
mailing list