Cant upload images, wrong fileextension (When it's not...)

14 views
Skip to first unread message

josef.o...@isotop.se

unread,
Jun 24, 2014, 10:34:39 AM6/24/14
to djangofi...@googlegroups.com
Hey.

I've reported this as an Issue on Github but it got closed and I was asked to write here instead...
Im using grappelli 2.5.3 and django-filebrowser 3.5.6 and I cant upload any images,I only recieve this error:

I've tried with many different images, both png, gif and jpg in different sizes, none of them work.

I have the following field on my model:

image = FileBrowseField(max_length=1024, verbose_name=_("image"), blank=True, null=True)

And in my settings I have the following:
MEDIA_ROOT = os.path.join(SITE_ROOT, 'media')
MEDIA_URL = "/media/"
FILEBROWSER_MEDIA_ROOT = MEDIA_ROOT
FILEBROWSER_MEDIA_URL = MEDIA_URL

FILEBROWSER_EXTENSIONS = {
'Folder': [''],
'Image': ['.jpg','.jpeg','.gif','.png','.tif','.tiff'],
'Document': ['.pdf','.doc','.rtf','.txt','.xls','.csv'],
'Video': ['.mov','.wmv','.mpeg','.mpg','.avi','.rm'],
'Audio': ['.mp3','.mp4','.wav','.aiff','.midi','.m4p']
}

I think that this is a bug, that's why I filled an Issue on GitHub...

josef.o...@isotop.se

unread,
Jun 24, 2014, 1:12:33 PM6/24/14
to djangofi...@googlegroups.com
It works when I use django-filebrowser 3.5.4 but not 3.5.5 or 3.5.6...
Reply all
Reply to author
Forward
0 new messages