TND / django-files-widget

Django AJAX upload widget and model field for multiple files or images, featuring drag & drop uploading, upload progress bar, sortable image gallery
Other
88 stars 52 forks source link

Works only with a super user account #17

Open AlexVFornazieri opened 8 years ago

AlexVFornazieri commented 8 years ago

I created my modules using a Django File Widget for create a imagens upload system for a gallery in Django Admin, everything works fine as superuser, but using a simple account, same with all conceded permissions, the files not is uploaded, just the thumbnail with progress bar show up.

I need fix it, how?

Thanks all for help!

mionch commented 8 years ago

Fileswidget uses its own permissions to determine if a user can upload images, so it is working as it should be, because by default users do not have these permissions. The easiest solution for you would be to either add these permissions for newly created users or to create a group with these permissions and add all new/existing users to it.

AlexVFornazieri commented 8 years ago

Hi Mech, Thanks for answer, but this permission "can upload images" don't show up in user permissions options. I need add it manually in my custom user model?

mionch commented 8 years ago

Hi, have you migrated fileswidget with syncdb or south? As far as I'm concerned it should add its permissions in its database migrations.