Again I found the answer...
I forgot to put enctype="multipart/form-data" in my form... sorry for
disturbing you.
-S
Salvatore Leone ha scritto:
> Hello again,
>
> I know this is probably an already discussed question, but I can't get
> out of this. I've got a form which may or may not send
Use a modal form for this which includes a file field that has
required set to false.
http://docs.djangoproject.com/en/dev/topics/forms/modelforms/#topics-forms-modelforms
http://docs.djangoproject.com/en/dev/ref/forms/fields/#filefield
Easier to let django handle the request then figure it all
Hello again,
I know this is probably an already discussed question, but I can't get
out of this. I've got a form which may or may not send a file, here is
the snippet of my view function:
if request.method == POST:
#process the form
...
if request.FILES:
att
Or anyone know
> what can be wrong?
>
> Best regards,
> Szymon
>
> On 30 Mar, 18:37, Peter wrote:
>
> > I'm having an opera file upload issue, which may not be django's
> > fault, but I'm curious if anyone has seen it (and has a solution)...
>
>
Hello,
I've faced same problem today. Have you find solution? Or anyone know
what can be wrong?
Best regards,
Szymon
On 30 Mar, 18:37, Peter wrote:
> I'm having an opera file upload issue, which may not be django's
> fault, but I'm curious if anyone has s
btw, in regards to the 2001 forum post - I went into the upload
handler and had it raise an exception on the content-type, and this
was formed properly on one line
On Mar 30, 12:37 pm, Peter wrote:
> I'm having an opera file upload issue, which may not be django's
> fault, bu
I'm having an opera file upload issue, which may not be django's
fault, but I'm curious if anyone has seen it (and has a solution)...
When I upload an image *only in opera* (specifically 9.64 on mac osx)
it doesn't appear in request.FILES. However, if I upload a really
small
I was at a changeset more recent than 3002. Can't recall which
revision number it was, but it was circa June 2. I figured that wasn't
it, played around with MySQL a bit more, uninstalled all but a specific
version of the MySQL client, reinstalled MySQL_python, turned on MySQL
logging, and was pe
Could this be it
http://code.djangoproject.com/ticket/572 or
http://code.djangoproject.com/ticket/1584 ?
me thinks this was fixed recently. =>
http://code.djangoproject.com/changeset/3002
are you running an up to date svn version?
see if that helps
--~--~-~--~~~--
I wouldn't think it would take multiple seconds to process the file I'm
trying to upload, still. I'll just see how it handles things in
production.
I'm seeing more problems, though, with how the admin interface is
dealing with my version of MySQL. At least I think Django is having a
problem wi
Hi james,
regarding:
> when I upload a file (a 10+MB mp3) on my local machine, it
> takes quite a while and pegs the CPU. Is this expected and is this
> going to be the behavior when I put it in production under fastcgi?
django keeps the whole upload in memory.
this has been discussed a few times
I'm having two issues within the same app.
First, maybe I just got a bad batch of crack, but I could've sworn
things were working differently the other day. I have one model class
(Podcast) that has a one to one relationship with another (Post). I
could've sworn that the other day, when I went
On 16-10-2005, at 20:43, Bo Shi wrote:
Moving the rename logic to _pre_save() would be the best way of doing
things but I have a problem where I rename the uploaded file into one
based on it's primary key. While in _pre_save(), self.id is None, so
is there a way to access the value that will b
Hey Nesh,
Moving the rename logic to _pre_save() would be the best way of doing
things but I have a problem where I rename the uploaded file into one
based on it's primary key. While in _pre_save(), self.id is None, so
is there a way to access the value that will become the primary key?
Bo
On 15-10-2005, at 9:57, Bo Shi wrote:
I have tried combining _post_save() and os.rename(...) to some limited
success but am not able to reset my FileField to the new file path (my
assumption is that using save() inside _post_save() causes infinite
recursion, no?). Clearly said strategy is an u
> I have tried combining _post_save() and os.rename(...) to some limited
> success but am not able to reset my FileField to the new file path (my
> assumption is that using save() inside _post_save() causes infinite
> recursion, no?). Clearly said strategy is an ugly hack with some
> major problem
Hi All,
I've been playing with FileField and file uploading.
I do have a problem that I can't seem to solve; when a file gets
uploaded, it is placed in the media directory under some random
filename the client was using. I would like to normalize this filename
so that
foo.txt
is saved on the
17 matches
Mail list logo