Problem with Upload module
tieg.zaharia at gmail.com
Mon Aug 11 22:52:29 MSD 2008
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,
On Mon, Aug 11, 2008 at 1:58 PM, Valery Kholodkov <
valery+nginxen at grid.net.ru <valery%2Bnginxen at grid.net.ru>> 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx