Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect upload name or no file uploaded #72

Closed
jasondavis opened this issue Sep 2, 2014 · 6 comments
Closed

Incorrect upload name or no file uploaded #72

jasondavis opened this issue Sep 2, 2014 · 6 comments

Comments

@jasondavis
Copy link

I have tried to copy the exact demo page code from the demo for the Frontend and then used the default PHP code that is in the project Repo for the backend, no matter what I change I always get this error in the frontend, it appears to do the upload by showing the progress bar and then shows this error message and does not save any file

Incorrect upload name or no file uploaded

I could really use some help, have spent a whole day and my boss is very unhappy and I have no idea what the problem is, it does not trigger any other errors!!!!!!!!

Please help.

Demo can be found here https://www.channelletter.com/channel-wizard/testuploader/index2.html

@7diac
Copy link

7diac commented Oct 25, 2014

Try to set the multipart to true. The default value is false and it cause the information to be sent via POST instead of FILES.

@shahroq
Copy link

shahroq commented Nov 12, 2014

Did u find any solution for this?

@LPology
Copy link
Owner

LPology commented Nov 12, 2014

Can those of you who are having this issue post your PHP code?

Also, any error messages from your error log would be extremely helpful.

@shahroq
Copy link

shahroq commented Nov 12, 2014

Hi,
Sorry, i forgot to change 'imgfile' at the:
$uploader = new FileUpload('imgfile');
ThanX

@mhulse
Copy link

mhulse commented Dec 21, 2014

For anyone else, the trick here is making sure this line of your JS:

name: 'uploadfile',

… matches this line of your PHP:

$Upload = new FileUpload('uploadfile');

If you are copy/pasting from examples, those variables are not equal out of the box.

@LPology
Copy link
Owner

LPology commented Feb 7, 2015

Good call. I've updated Uploader.php to make the default value of $uploadFile to be "uploadfile" to matches the examples. Thanks for your input.

@LPology LPology closed this as completed Feb 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants