After experimenting the only way I could reliably detect and delete the
stuck temp files is a bit of a hack to implement a post_save signal to
delete the file, but I have to attach an attribute to the model object
being saved to determine the name of the file in /tmp.
def save(self, *args, **kw
I'm seeing this same issue with a slight twist...
When uploading a files >2.5MB via a regular Django view or the Django
Admin, the file uploads and the temp copy in /tmp is removed. When I upload
using django-rest-framework via POST, the file uploads but the temporary
copy remains in /tmp. I po
On 04/03/13 Emiliano Dalla Verde Marcozzi said:
> method from my own class that subclass TemporaryFileUploadHandler and do
> something like:
Yeah, I'm doing that, but it seems odd to me that the handler leaves the file
around, when it's supposed to be temporary, no?
Mike
--
You received this m
2013/3/4 msoulier
> Hi,
>
> I'm using a ModelForm to upload a large file that ends up being
> written to a tempfile on disk. When I call form.save(), the file gets
> copied to the final filename, but the tempfile is left behind on disk.
>
> I am using a custom handler, which is a TemporaryFileUpl
4 matches
Mail list logo