Do you also get a 'No such file or directory' error when using the FILE_UPLOAD_TEMP_DIR setting, or do you get a different error?
On Jul 14, 5:34 pm, tom <[EMAIL PROTECTED]> wrote: > hi, > > i have done that. I am running the server with the runserver command. > I tried also different directories using the FILE_UPLOAD_TEMP_DIR > without any change. This behaviour is reproducable on different > servers and come up with upgrading to the latest revision of the > django branch. It has been working before. I increased the > FILE_UPLOAD_MAX_MEMORY_SIZE for the moment, but need to change that > back to the FILE_UPLOAD_TEMP_DIR soon. > > cheers, tom > > On 14 Jul., 04:54, Julien Phalip <[EMAIL PROTECTED]> wrote: > > > Looks like apache does not have write access to that directory. > > Try setting a different directory where Apache will have appropriate > > access, use the FILE_UPLOAD_TEMP_DIR setting for that. > > > On Jul 14, 11:48 am, tom <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I have a problem with file uploads which are bigger than 2.5 MBs. When > > > I use files which are smaller than 2.5 MBs, the files save as > > > expected. As soon as they are bigger than that, I get an IOError (see > > > traceback further down). I have checked that i have write and delete > > > permissions on this directory. When I change the > > > FILE_UPLOAD_MAX_MEMORY_SIZE the uploads are working fine. > > > > Help would be very much appreciated. :) > > > > Cheers, Tom > > > > """ > > > Environment: > > > > Request Method: POST > > > Request URL:http://localhost:8000/admin/ads/ad/11/ > > > Django Version: 0.97-pre-SVN-unknown > > > Python Version: 2.5.1 > > > Installed Applications: > > > ['django.contrib.auth', > > > 'django.contrib.contenttypes', > > > 'django.contrib.sessions', > > > 'django.contrib.sites', > > > 'django.contrib.admin', > > > 'django.contrib.flatpages', > > > 'django.contrib.comments', > > > 'our.aps'] > > > Installed Middleware: > > > ('django.middleware.common.CommonMiddleware', > > > 'django.contrib.sessions.middleware.SessionMiddleware', > > > 'django.contrib.auth.middleware.AuthenticationMiddleware', > > > 'django.middleware.cache.CacheMiddleware', > > > 'django.middleware.doc.XViewMiddleware', > > > 'our.middleware.threadlocals.ThreadLocals', > > > 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware') > > > > Traceback: > > > File "/Library/Python/2.5/site-packages/django/core/handlers/base.py" > > > in get_response > > > 86. response = callback(request, *callback_args, > > > **callback_kwargs) > > > File "/Library/Python/2.5/site-packages/django/contrib/admin/views/ > > > decorators.py" in _checklogin > > > 62. return view_func(request, *args, **kwargs) > > > File "/Library/Python/2.5/site-packages/django/views/decorators/ > > > cache.py" in _wrapped_view_func > > > 44. response = view_func(request, *args, **kwargs) > > > File "/Library/Python/2.5/site-packages/django/contrib/admin/views/ > > > main.py" in change_stage > > > 338. new_object = manipulator.save(new_data) > > > File "/Library/Python/2.5/site-packages/django/db/models/ > > > manipulators.py" in save > > > 106. f.save_file(new_data, new_object, self.change > > > and self.original_object or None, self.change, rel=False, save=False) > > > File "/Library/Python/2.5/site-packages/django/db/models/fields/ > > > __init__.py" in save_file > > > 855. func(file_name, file, save) > > > File "/Library/Python/2.5/site-packages/django/db/models/fields/ > > > __init__.py" in <lambda> > > > 817. setattr(cls, 'save_%s_file' % self.name, lambda > > > instance, filename, raw_field, save=True: > > > instance._save_FIELD_file(self, filename, raw_field, save)) > > > File "/Library/Python/2.5/site-packages/django/db/models/base.py" in > > > _save_FIELD_file > > > 532. file_move_safe(raw_field.temporary_file_path(), > > > full_filename) > > > File "/Library/Python/2.5/site-packages/django/core/files/move.py" in > > > file_move_safe > > > 40. file_move(old_file_name, new_file_name) > > > File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ > > > python2.5/shutil.py" in move > > > 199. copy2(src,dst) > > > File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ > > > python2.5/shutil.py" in copy2 > > > 91. copyfile(src, dst) > > > File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ > > > python2.5/shutil.py" in copyfile > > > 46. fsrc = open(src, 'rb') > > > > Exception Type: IOError at /admin/ads/ad/11/ > > > Exception Value: [Errno 2] No such file or directory: '/var/folders/g2/ > > > g2k+MI0fHlCR7GvjpacMPU+++TI/-Tmp-/tmpR3rxkC.upload' > > > > """ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---