Re: Format of arrays in multipart forms?

2016-09-27 Thread Peter of the Norse
PHP is stupid.  The problem with the [] syntax is that you have to be careful that the user hasn’t added or removed it from your fields.  This can cause problems if you were expecting an array and got a string, or vice-versa.Instead, name the fields without [], and in your Django code, use request.

Format of arrays in multipart forms?

2016-08-26 Thread ggilley
I'm trying to create an iOS app that can post multipart forms to Django. (JSON is trivial, wish it worked with file uploads. :-) What is the proper format for the HTTP request when passing arrays of values? (Strings is all I care about at the moment) I think PHP has the follow style. What is th