We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using store on an uploaded file fails when you push an empty file (created with touch for example), even with name.extension in the client file name.
store
touch
name.extension
$request->file('my_file')->store('public/uploads');
Exception returned :
fopen([...]\storage\app\public/uploads/UBNhJUhG2R2NUc7aLzMcD12bVVPqc1naopTbShv1.): failed to open stream: Permission denied
Digging down, the exception is thrown because of the trailing dot returned by the hashName function, when $this->guessExtension() is null.
hashName
$this->guessExtension()
null
Credits to @destinais for the unexpected discovery.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description:
Using
store
on an uploaded file fails when you push an empty file (created withtouch
for example), even withname.extension
in the client file name.Exception returned :
Digging down, the exception is thrown because of the trailing dot returned by the
hashName
function, when$this->guessExtension()
isnull
.Credits to @destinais for the unexpected discovery.
Steps To Reproduce:
The text was updated successfully, but these errors were encountered: