mr srirang, you are using nginx upload module right. 413 will be thrown when the request entity too large .set the field like this upload_max_output_body_len 0; 0 means there will be no restriction for the file size u r uploading .check in ur remote machine config .if u did nt specify the above .the default will be 100kb. and another thing there is no file limby vetri - Nginx Mailing List - English
hi speedfirst, i dont know whether u can append or not. but you can redirect the page u want to send if u get such errors for example error_page 403 /response.html; instead of getting 403 in the client response.html will be sent to client . if U want to send alternate Response to client instead of sending 403.by vetri - Nginx Mailing List - English
Hi All, I have come up with one doubt . for example if 100 users are uploading 1GB file concurrently .and i have only 50GB free space in my hard Disk.here i dont want to allow after 50 users started to upload file.i want to restrict users who comes after 50 and i want tell the users nomemory to allocate .if i can do that? How can i do that?.is there any 3rd party module to handlby vetri - Nginx Mailing List - English
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"; uploadby vetri - Nginx Mailing List - English
mr francis, i am sending my key=value through http://localhost:8085/zsupload?filename=run.txt&content-type=txt&checksum="6454456456" by turning upload_pass_args on,i could not notify the path which is /home/vetriselvanm/Desktop/upload/0000000001 to backend and that is the path where file is stored. but i used that upload_set_form_field what u specified above didnt wby vetri - Nginx Mailing List - English
mr kunz, Thanks for the reply . i am not using form to upload files. i am using java client to send files to nginx via post operation. even though i tried what u said there is no notification at the backend .here is the config worker_processes 20; error_log /home/vetriselvanm/Desktop/upload/error.log info; events { worker_connections 1024; } http { includeby vetri - Nginx Mailing List - English
hi all, uploading files via nginx is awesome .i am sending query arguments in post operation which will be passed to backend server.i want to append one more key value pair to that query arguments to send into backend server(own key value will be taken from program).if i want to do like this which part of the program i should concentrate to append my own arguments to that query arguments aby vetri - Nginx Mailing List - English
hi all, i am concurrently uploading as much files i can . if i increase the upload buffer size in the upload module . will it affect the concurrency.is there any limitation for upload buffer size in the upload module.how it affect the performence and concurrency? thanks in advanceby vetri - Nginx Mailing List - English
hi all, i am posting file to nginx concurrently using nginx upload module . when i post 100 10mb files concurrently there is no problem .but when i increase no of connectoin concurrently there is problem . the problem is it is accepting the connection but it rejects the incoming stream coming to nginx before the file is completed .i wanna know how much it would scale concureurrently.by vetri - Nginx Mailing List - English
hi all, i am using nginx to upload files via upload module. i am using java client to post data . when i upload file it is uploaded successfully but it is deleted automatically . when i see the log it is showing aborted uploading file. in the log :client sent invalid method while reading client request line can someone help me?by vetri - Nginx Mailing List - English
hi all, i am using upload module to post file to the server. how can i improve scalability of the server to upload files . one server is running and receiving all uploded files . if i add three or four server on the backend .will it improve scalability? here is my configuration there is no need for backend server but if i add 3 or 4 backend server will it improve scalability? iby vetri - Nginx Mailing List - English
hi francis, what did u do to upload files ? can u give me your code ?and how to use stock nginx can we really upload files using stock nginx? thanksby vetri - Nginx Mailing List - English
mr francis, i have written my nginx configuration above . that is the configuration i am using to upload file . mr alexander, my goal is to save the file in the real name (or) pass the temporary name to backend server as query . can i do that? thanksby vetri - Nginx Mailing List - English
mr kunz, if i dont specify the backend server on 8080 , it will show bad gateway error . uploading is fine . mr francis, why should i keep the code in the upload folder.server willl handle uploaded files. thanks for the replyby vetri - Nginx Mailing List - English
mr francis , i am uploading files via form to nginx .here below i have written my config worker_processes 20; error_log logs/error.log notice; working_directory /usr/local/nginx; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; server { listen 80; client_max_body_size 100m; # Upload form should be submitted toby vetri - Nginx Mailing List - English
hi all , i am uploading files via nginx upload module . in my configuration location /upload { .............. .................. } this will be matched with post request .but when i upload file .file is uploaded successfully response to the client is 403 . when i see log file it is showing directory indexof /usr/local/nginx/html/upload/ isby vetri - Nginx Mailing List - English
mr valery, we have alredy discussed much more about upload module. if i want to save the file in real name .which part of your code i should focus and is this possible to change your code for file to get saved in real name?if it is . in the upload module source code which method i should focus?by vetri - Nginx Mailing List - English
mr valery, if i can not log aggregate varibles.is there any other way to print checksum and file size of the file .when every file is uploaded i want to send $upload_file_name,$upload_tmp_path and $upload_file_md5 variable to backend server like sending query parameters .can i do that via configuration? thanks for replyby vetri - Nginx Mailing List - English
mr valery, can i customize the log in nginx.i want to change the variables in default nginx log ?is that possible? advanced thanksby vetri - Nginx Mailing List - English
mr Valery, Thanks for Information .now I am Seeing the information of that file is getting printed in the log file .when i chenge log level to info it is printing automatically info into log file.In this upload module i want to add checksum and size of the file of that file to get printed in that log file . can i do that?if it is , how? because you have written upload_aggrby vetri - Nginx Mailing List - English
Mr Valery, thanks for the reply,and i have one more doubt when i upload file ,name ,content-type ,path of that file will be stored in upload_set_form_field ($upload_file_name,$upload_file_type,$upload_tmp_path).can i print this variable in log file.can i use seperate log file for to print this variable.if it is possible how can i do that? .because there is default access log in nginx aby vetri - Nginx Mailing List - English
Mr Basil Kurian, it seems to be server on port 8080 is not responding properly . make sure that apache in the backend is running on 8080 .by vetri - Nginx Mailing List - English
hi all, I am uploading files through Nginx Server .i am using upload module configuration . when i try to write new variables in log .it is not printing new variales (for ex.-->printing $upload_file_name doesnt take effect).can i create new log file and print desired variable in log file in nginx and how to do that?by vetri - Nginx Mailing List - English
hi all, i am uploading files via nginx upload module.can i pass query parameters to tomcat which is running on backend after every file upload is completed? can i do that via configuration?by vetri - Nginx Mailing List - English
mr yanxinz , if directive is working fine but still it is showing 403 forbiddenby vetri - Nginx Mailing List - English
Mr yanxin z, it is showing that if is a unknown directive.do we have to add any module for if directive? thanks for the replyby vetri - Nginx Mailing List - English
mr valery, proxy_redirect off helps to turn off 405 but now it is showing 403 forbidden. thanks for the replyby vetri - Nginx Mailing List - English
mr valery, 1. version of the nginx i am using is 0.8.54 2.my exact config file is worker_processes 20; error_log logs/error.log notice; working_directory /usr/local/nginx/html/; events { worker_connections 1024; } http{ include mime.types; default_type application/octet-stream; server { server_nameby vetri - Nginx Mailing List - English
mr valery, <html> <head> <title>Test upload</title> </head> <body> <h2>Select files to upload</h2> <form enctype="multipart/form-data" action="/upload" method="post"> <input type="file" name="file1"><br> <input type="file" name="file2"><bby vetri - Nginx Mailing List - English
hi , i am using nginx upload module to upload files.i am using the following configuration and file is uploaded successfully but 405 Not Allowed error is returned to browser from Server.can someone help what is the problem is? worker_processes 20; error_log logs/error.log notice; working_directory /usr/local/nginx; events { worker_connections 1024; } http { include mime.by vetri - Nginx Mailing List - English
![]() |
![]() |
![]() |
![]() |
![]() |