Allright, I fixed it. This did the trick --> destination = open(settings.MEDIA_ROOT+'userAvatarDir/'+fName, 'wb+')
On Thu, Sep 22, 2011 at 9:55 PM, Robert Steckroth <robertsteckr...@gmail.com > wrote: > Hey Gang, I have created a simple user profile area with an Avatar > image upload system. It works great on my localhost but gives a > permission error on the server. Has anyone ran into this and found a quick > answer? > The upload media url is a wsgi process and is not used in the file.open() > command. > The directory permissions are the same as well. Got to be some cookie thing > but > I tried clearing all cookies and cache off the Browser. Here is the error > line break --> > destination = open('/home/radioweedshow/uploads/userAvatarDir/'+fName, > 'wb+') > IOError at /startUpload/ > > [Errno 13] Permission denied: > u'/home/radioweedshow/uploads/userAvatarDir/surgemcgeenewHeader1.jpg' > > Request Method: POST Request URL: > http://www.radioweedshow.com/startUpload/ Django Version: 1.3 Exception > Type: IOError Exception Value: > > [Errno 13] Permission denied: > u'/home/radioweedshow/uploads/userAvatarDir/surgemcgeenewHeader1.jpg' > > Exception Location: /home/radioweedshow/radio/member/memberViews.py in > handle_uploaded_file, line 31 Python Executable: /usr/bin/python Python > Version: 2.6.5 Python Path: > > ['/usr/lib/python2.6', > '/usr/lib/python2.6/plat-linux2', > '/usr/lib/python2.6/lib-tk', > '/usr/lib/python2.6/lib-old', > '/usr/lib/python2.6/lib-dynload', > '/usr/lib/python2.6/dist-packages', > '/usr/lib/pymodules/python2.6', > '/usr/lib/pymodules/python2.6/gtk-2.0', > '/usr/local/lib/python2.6/dist-packages', > > > -- > Bringing game to younix > Bust0ut Entertainment --- > PBDefence.com > "Finding the exit without looking" > -- Bringing game to younix Bust0ut Entertainment --- PBDefence.com "Finding the exit without looking" -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.