Skip to content
This repository was archived by the owner on Aug 12, 2020. It is now read-only.

Only Image Files are Uploaded , Other file types Raise [SyntaxError: Unexpected token <] #20

Closed
amyth opened this issue Nov 6, 2012 · 3 comments

Comments

@amyth
Copy link

amyth commented Nov 6, 2012

Image files [png, jpg, gif] works perfect with multiupload but other files are not uploaded and the ui throws the error : SyntaxError: Unexpected token <

@amyth amyth closed this as completed Nov 6, 2012
@amyth
Copy link
Author

amyth commented Nov 6, 2012

soz, have been lame enough not to set the file types in options.

@yesiknowjava
Copy link

I changed this
acceptFileTypes: /(zip)|(csv)$/i,

But it still didnt work?

Can somebody help

@sigurdga
Copy link
Owner

As of today, we handle form validation errors better in backend, and it should be visible in the frontend too.

@yesiknowjava I hope you have already found out that you may need to change to using a FileField instead of an ImageField.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants