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

The post name of $_FILES #9

Open
DracoVenturus opened this issue Dec 7, 2018 · 0 comments
Open

The post name of $_FILES #9

DracoVenturus opened this issue Dec 7, 2018 · 0 comments

Comments

@DracoVenturus
Copy link

DracoVenturus commented Dec 7, 2018

Hello,

since it got me near the hell finding it out, I hope to help you people by stating that the name of the $_FILES that is passed to your upload.php (or whatever your imageUploadURL's name is) is set to be "file" in plugin.js.

So in your upload.php you should check for $_FILES['file']['tmp_name'] when you do your move_uploaded_file.

I didn't think it could be any different from the default CKEDITOR $_FILES name (which is 'upload' in my knowledge) so it was the last think I went looking for when things didn't work.

Cheers

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

1 participant