#8450: Admin interface fills the harddrive on uploading files of roughly 2.5MBs 
in
size
-----------------------------+----------------------------------------------
 Reporter:  snaury           |       Owner:  nobody    
   Status:  new              |   Milestone:  1.0       
Component:  Admin interface  |     Version:  SVN       
 Keywords:                   |       Stage:  Unreviewed
Has_patch:  0                |  
-----------------------------+----------------------------------------------
 When using admin interface on a model that has FileField and trying to
 upload files of roughly 2.5MBs django gets into a loop (I've checked on
 Windows XP SP2 only for now), saving the file over and over again (adding
 underscore on every iteration), never stopping. I haven't been able to
 determine the exact file size though, but 2.5MBs seems to work in all
 cases. Unfortunately I don't know django well enough to determine if this
 problem exists outside of admin interface. I can't find where exactly it
 is looping like that either (if you can hint me of some way it would be
 greatly appreciated). :(

 I'm attaching a sample project that reproduces the problem. Inside you
 will find a bigfile.py that when executed creates a zero-filled
 bigfile.dat file. Run manage.py syncdb and manage.py runserver then
 navigate to http://localhost:8000/admin/main/myfile/add/ and try attaching
 bigfile.dat. On my machine it starts filling myfile subdirectory with
 multitudes of bigfile.dat copies. All of the files saved there are
 identical to bigfile.dat, so it must be saving it correctly, but then it
 aborts and tries saving it again. If the file is, for example, 1KB smaller
 then everything goes fine.

 I'm testing using trunk revision 8448.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8450>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to