Problem with Upload module

Valery Kholodkov valery+nginxen at
Tue Aug 12 00:34:08 MSD 2008

No, there is no such limitation. You principally can specify:

upload_set_form_field "${upload_field_name}[name]" "$upload_file_name";

etc. And get "photo[uploaded_data][name]" as a field name. I just don't 
know how is it going to be interpreted by Rails.

Tieg Zaharia wrote:
> Sorry, I just meant if it was valid with the upload module, since the 
> example you posted sent "photo" instead of "photo[uploaded_data]" as the 
> file? I misunderstood and thought you took out the bracketed params 
> because of a limitation with the upload module,
> -tieg
> On Mon, Aug 11, 2008 at 1:58 PM, Valery Kholodkov 
> <valery+nginxen at <mailto:valery%2Bnginxen at>> wrote:
>     I personally have absolutely no idea whether it is okay or not. This
>     is beyond my competence.
>     Tieg Zaharia wrote:
>         This is more of a rails standard than a ruby standard, but
>         shouldn't it be okay to send the form field to the app server as
>         "photo[uploaded_data][name]",
>         "photo[uploaded_data][content_type]", etc. instead of just
>         "photo[name]", "photo[content_type]", etc? The bracketed values
>         are usually used as attributes of a model, so you probably don't
>         want to take a chance of mixing up the model attributes with the
>         uploaded data's nginx attributes,

Valery Kholodkov

More information about the nginx mailing list