try to use put just to eliminate that being the issue
i mean POST
the_rat joined the channel
chronos
not working with put... I'm doing XHR file uploads with Jquery File Uploader and, with PUT, request.FILES isnt filed
using 1.5b of last week, will update heeh
apollo13
uhm files is usually binary
graingert joined the channel
so you need a special library that supports that
check the xhr request if the files are there at all…
chronos
yes, they are.
if I use POST, works fine
racycle joined the channel
joshfinnie joined the channel
Jasper has quit
Jasper joined the channel
fission6
what do you mean by it doesn't work are youg eating a traceback in the ajax request
chronos
fission6: file isnt in self.request.FILES with put ajax requests.
and they should be
any traceback
and sadly I dont have time to investigate more now
(cuz I'm working on vacation lol)
apollo13
chronos: check request.body and see if it's there
if not jquery fails before already
fission6
The method of the HTTP request used to send the file(s) to the server. Can be POST (multipart/formdata file upload) or PUT (streaming file upload). Accepts a String or a function returning a String.
chronos
k apollo13
hm, PUT will not accept multipart than
lobo_d_b joined the channel
yassine joined the channel
I upgrading, check all that soon
fission6
apollo13: where you based out of curiosity
apollo13
austria
fission6
oh word
Luyt has quit
andrey_ has quit
superdmp joined the channel
chronos
apollo13, file is in request.body, but not in request.FILES
ahn, I dont know how 'streaming file upload' should work exactly, but for size of body file was fully uploaded, but just not recognized.
syst3ml00t joined the channel
superdmp
in the default LOGGING configuration, when running Django not from the runserver but lighttpd using manage.py runfcgi, what counts as the console that logging messages get sent to?
syst3ml00t has quit
molavy has quit
graingert has quit
umc has quit
chronos
well, that is in docs: https://docs.djangoproject.com/en/dev/ref/reque... 'Note that FILES will only contain data if the request method was POST and the <form> that posted to the request had enctype="multipart/form-data". Otherwise, FILES will be a blank dictionary-like object.'
fission6
chronos: my rec is to move on and just use POST
delaman has quit
chronos
I will fission6 :), but was really curious.
thx guys
fission6
curiosity is good, so is productivity
delaman joined the channel
chrismed joined the channel
chronos
indeed, but a bit of curiosity sometimes lead us to improvement, other times, we just loose time
cebor joined the channel
fission6
wont argue that
Luyt joined the channel
mikef
do rendered objects have a url b default? like <a href="{{ blog.blog.url }}" >
*by
apollo13
cramm: well, if curious, look how django parses request.FILES ;)
superdmp
Happy New Year all
apollo13: a commit a day for 2013!
apollo13
superdmp: haha
superdmp
you think I'm joking!
apollo13
chronos: but if you look at _load_post_and_files in django.http.request it only loads files for POST requests
greg_f has quit
arturrro joined the channel
superdmp: nono, but I already have more than one today ;)
superdmp
in the default LOGGING configuration, when running Django not from the runserver but lighttpd using manage.py runfcgi, what counts as the console that logging messages get sent to? I thought it would be the error.log of lighttpd, but it seems not
apollo13: yes I saw
chronos
apollo13: hehe, I'll when have time, promisse :).
apollo13
superdmp: console is always stdout of the manage.py process I guess
superdmp
still, that's my new year's resolution, if I can do it for the docs