Welcome! Log In Create A New Profile

Advanced

Re: forward arguments in upload module

June 14, 2011 02:07AM
mr francis,

sorry for asking again. i have to make clear. i sent the file via form in browser.now i tried in browser .u have specified

upload_set_form_field above . i used that

upload_set_form_field $upload_field_name.name "$upload_file_name";
upload_set_form_field $upload_field_name.content_type "$upload_content_type";
upload_set_form_field $upload_field_name.path "$upload_tmp_path";


In the Server log i printed Field name and value .here what i got when i upload nginx.tar.gz

Field Name is file1.name Field Value is nginx.tar.gz

Field Name is file1.content_type Field Value is application/x-zip

Field Name is file1.path Field value is /home/vetriselvanm/Desktop/upload/0000000001

Now i have got the three key value pair for the file specified above.

My backend server will parse the key value pair and it will print it. for example if it recieves name=run.txt

it will print paramname ::name and paramvalue::run.txt

after the file is uploded i am receiving notification but no key=value is passed to backend .

i used upload_pass_form_field directive to pass key=value to backend .below is the directive what i used .

upload_pass_form_field "^submit$|^description$";

am i using the regex pattern correctly?or should i change it ,if i have to change? how ? give me backend handler code to parse key=value or getting the above key values which is working for u?


Thanks for the Reply
Subject Author Posted

forward arguments in upload module

vetri June 10, 2011 09:58AM

Re: forward arguments in upload module

Alexander Kunz June 10, 2011 10:52AM

Re: forward arguments in upload module

vetri June 11, 2011 12:40AM

Re: forward arguments in upload module

Francis Daly June 11, 2011 04:48AM

Re: forward arguments in upload module

vetri June 13, 2011 02:12AM

Re: forward arguments in upload module

Francis Daly June 13, 2011 02:22PM

Re: forward arguments in upload module

vetri June 14, 2011 02:07AM

Re: forward arguments in upload module

Francis Daly June 14, 2011 01:32PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 70
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready