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

error on upload file in Local storage #47

Closed
hanmuja opened this issue May 5, 2018 · 2 comments
Closed

error on upload file in Local storage #47

hanmuja opened this issue May 5, 2018 · 2 comments

Comments

@hanmuja
Copy link

hanmuja commented May 5, 2018

Hi, when I did a upload file in local storage, the FM gived me an error message "ERROR_UPLOAD", so I investigated and I founded in Class "BaseUploadHandler" in function "get_upload_data($id)" the var $id is "upload" on upload action, but the function always return the info in @$_FILE[$id] and this array @$_FILE only have the key 'files' where is the file info what I need upload. I did a ugly change in the code for get the info in 'files' when $id is 'upload'. But I think there is a better solution for this bug.

@psolom
Copy link
Owner

psolom commented May 5, 2018

If you open the config.local.php file you can see paramName option in the upload section. All you need is to set the value to files in the filemanager.php file while configuring the RFM app.

See the original discussion: psolom/RichFilemanager#297

I'm also curious where the files value is come from?

May assume it's from CKEditor, right?

@hanmuja
Copy link
Author

hanmuja commented May 5, 2018

Hi, Thank you for you quick response, and the files is come from FM, I use the default multiple upload
screenshot from 2018-05-05 17 02 45

@hanmuja hanmuja closed this as completed May 5, 2018
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

2 participants