Sopamo / laravel-filepond

Laravel backend module for filepond uploads
MIT License
203 stars 56 forks source link

tempnam(): file created in the system's temporary directory #5

Closed xerod closed 4 years ago

xerod commented 5 years ago
image

Issue: using tempnam() actually throwing notice that the file are created in the system's temp directory, even the files are actually saved there. But on my application, it's throwing 500 exception and canceled the process.

Solution: you could add @ before the tempnam(). The line should be like this: $filePath = @tempnam(config('filepond.temporary_files_path'), "laravel-filepond");

i've test it on both local and my server. No problem at all.

Reference: https://github.com/Glavin001/atom-beautify/issues/1108

Sopamo commented 4 years ago

Thanks for reporting this issue. Would you be able to submit a PR?

Sopamo commented 4 years ago

This has been fixed in v0.4.