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

Error ! #1

Closed
alexexp opened this issue Dec 2, 2010 · 8 comments
Closed

Error ! #1

alexexp opened this issue Dec 2, 2010 · 8 comments

Comments

@alexexp
Copy link

alexexp commented Dec 2, 2010

missing ) in parenthetical
[Break on this error] settings.streaming ||В... undef || typeof FileReader !== undef\n
jquery...load.js (строка 41)
$(this).fileUpload is not a function
[Break on this error] $(this).fileUpload(new UploadHandler($(this), options));
jquery...d-ui.js (строка 170)
$(this).fileUpload is not a function
[Break on this error] $(this).fileUpload(new UploadHandler($(this), options));

In demo work fine, but in download archive have error.

@alexexp
Copy link
Author

alexexp commented Dec 2, 2010

i see problem with "settings.streaming || "

@blueimp
Copy link
Owner

blueimp commented Dec 3, 2010

Sorry but I can't reproduce this problem.
The demo uses the same scripts in a minified version.
And I also double checked if the example in the download archive is working.
Line 41 of jquery.fileupload.js is this one:
settings.streaming || typeof FormData !== undef || typeof FileReader !== undef
I'm sorry but don't see an issue with this line. JSLint ( http://www.jslint.com/ ) also didn't give any warnings.
Could you tell me which browser, browser-version and operating system platform you're using?

@alexexp
Copy link
Author

alexexp commented Dec 3, 2010

I tested in FireFox 3.6.12 , Google Chrome 7.0.517.44 , Windows XP .
If I delete "settings.streaming ||" then no problem .
This screenshot with error http://img143.imageshack.us/i/ajaxuploaderr.jpg/

@blueimp
Copy link
Owner

blueimp commented Dec 3, 2010

That's really strange.
This is my result, working as expected, tested with both Firefox 3.6 and IE 8.0 on Windows XP:
http://i.imgur.com/TYtSX.png

Well, you can safely delete "settings.streaming ||" if you're not using the streaming option. It's only useful if you want to implement PUT method uploads on the server side, e.g. the method described here:
http://www.php.net/manual/en/features.file-upload.put-method.php

@alexexp
Copy link
Author

alexexp commented Dec 3, 2010

OK.Big Thanks.
Maybe others people ask with this problem too.

@blueimp
Copy link
Owner

blueimp commented Dec 3, 2010

Yeah, I'll let this issue open for a while to see if more experience this problems or if there is a way I can reproduce it.

@awsninja
Copy link

I can confirm this bug:
http://yfrog.com/65developertoolshttpadminp

Note the � in in the offending line.

@blueimp
Copy link
Owner

blueimp commented Dec 13, 2010

Thanks awsninja, I removed the unwanted non-printable character from the file and pushed it to the repository (not changing the version number).
If you or alexexp can confirm that it works now I can close this bug.

This issue was closed.
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