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

imageUpload error with Browse button #3

Open
indicalabs opened this issue Feb 1, 2014 · 7 comments
Open

imageUpload error with Browse button #3

indicalabs opened this issue Feb 1, 2014 · 7 comments

Comments

@indicalabs
Copy link

@asofter
I am using 'imageUpload'.
if I drag and drop images, it is working fine, but when I select an image with "Browse" button, below error is showing in firebug console.
I have tried a lot but no luck.
any idea how it works?

TypeError: rawString.match(...) is null

var jsonString = rawString.match(/\{(.|\n)*\}/)[0];
redactor.js (line 6893)
@indicalabs
Copy link
Author

The above error is always followed by below jQuery warning
Use of getPreventDefault() is deprecated. Use defaultPrevented instead.
var jsonString = rawString.match(/{(.|\n)*}/)[0];

@indicalabs indicalabs reopened this Feb 3, 2014
@asofter
Copy link
Owner

asofter commented Oct 29, 2014

Still?

@TonsOfLaz
Copy link

screen shot 2014-12-01 at 18 33 38

Has anyone seen a solution to this? I have no idea what is going on and I haven't found anyone else having this. I have the exact issue here -- It works if I drag the file in, the json response and messages sent are exactly the same, in both cases the file actually uploads correctly. BUT I get that same javascript error and the file never shows up in the redactor window if I use the browse button.

Any assistance greatly appreciated!

@TonsOfLaz
Copy link

Hi, if anyone else is having this problem, it was fixed by updating to the most recent version of redactor (10.0.5) I had been on 9.2.4 before. No idea why it was happening, but it is working for me now.

@aiddroid
Copy link

aiddroid commented Jul 2, 2015

And cannot select uploaded files,what a pity.

@adrianmann
Copy link

@venu85 Did you take @TonsOfLaz advice and update to the latest version?

@adrianmann
Copy link

@TonsOfLaz Thanks very much, updating to the latest version worked.

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

5 participants