Welcome! Log In Create A New Profile

Advanced

Re: NGINX Upload Module - Temp Filenames to Proper Fil

Francis Daly
June 15, 2011 08:06PM
On Wed, Jun 15, 2011 at 11:47:28AM -0400, kings.reuben wrote:

Hi there,

> Am using NGINX Upload module to store files in my server's disk. The
> filenames are in 10 digit numbers. When I tried to figure out things,
> the filename is allocated with 10 byte extra memory and a generated
> value of 10 digit becomes file name.
>
> Here are my questions / clarifications:
> The files uploaded to my server are uploaded using a unique ID of 16
> digits (no duplicates). Though I can parse the HTTP header for the 16
> digit, I donno how to use that to store the file in that name.

Using the upload module should make it a bit easier for you to write
your own form-handling script than not using the upload module.

With a combination of upload_set_form_field and upload_pass_form_field
directives, you'll be able to get the 10 digit filename and the 16
digit ID to your script. "rename" the one to the other in your script,
and you are done.

> Can anyone advice / help me in solving this problem?

Don't mess with the module code. proxy_pass or fastcgi_pass or something
to your own form handler and do it there.

Good luck with it,

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

NGINX Upload Module - Temp Filenames to Proper Fil

kings.reuben June 15, 2011 11:47AM

Re: NGINX Upload Module - Temp Filenames to Proper Fil

Francis Daly June 15, 2011 08:06PM

Re: NGINX Upload Module - Temp Filenames to Proper Fil

kings.reuben June 16, 2011 09:31AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 201
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready