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

Import upload driver server 500 error then creates incorrect filenames in database #13

Open
cylkee opened this issue Jul 25, 2019 · 0 comments

Comments

@cylkee
Copy link

cylkee commented Jul 25, 2019

The error log shows a line break so I suspect what was sent to filesize() was not trimmed.

Fatal Error: ErrorException 0 - filesize(): stat failed for /path-redacted/workspace/images/
filename.jpg on line 39 of /path-redacted/extensions/importcsv/drivers/ImportDriver_upload.php

I tweaked ImportDriver_upload.php to always trim($value) and the import worked but a separate issue arose where it created incorrect filenames in the database. I tweaked it again changing $fileData['file'] to take trim($value) redid the import and all was fine.

Pull request: #12

This is two issues in one, sorry.

CentOS Linux 7.6.1810
Symphony 2.7.10
PHP 7.1.30
Time to test and create issue and PR 1.5 hours

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