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

Fixes for upload driver #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

cylkee
Copy link

@cylkee cylkee commented Jul 25, 2019

When $value was not always trimmed it caused a server 500 error on import. The error log was showing a line break e.g.

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

Also, the resulting import set a path for $fileData['file'] because $filename was used I believe, so Symphony was complaining the file did not exist even though it was there and the link worked. Undoing the import, changing $fileData['file'] to take the trimmed $value made the import work afterwards.

When `$value` was not always trimmed it caused a server 500 error on import.  The error log was showing a line break e.g.

```
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
```

Also, the resulting import set a path for `$fileData['file']` because `$filename` was used I believe, so Symphony was complaining the file did not exist even though it was there and the link worked.  Undoing the import, changing `$fileData['file']` to take the trimmed `$value` made the import work afterwards.
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

Successfully merging this pull request may close these issues.

1 participant