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

Invalid upload request #696

Closed
ARNolasco opened this issue Sep 27, 2018 · 20 comments
Closed

Invalid upload request #696

ARNolasco opened this issue Sep 27, 2018 · 20 comments
Labels
done Issue is fixed. Will be closed in 7 days.

Comments

@ARNolasco
Copy link

I have this issue "Invalida upload request", some people mention the problem is de exif extension but according to phpinfo() the extension php-exif in enable. There is something else that can provoke this error. Mi project work fine in my local but in my web site (sharing-host) do not upload new photos. Thanks in advance for the help.

image

Originally posted by @ARNolasco in #475 (comment)

@syedarifiqbal
Copy link

I am having same issue in laravel 5.7. please give some solution. for sure i have all extension enabled like fileinfo, exif, gd2 i took my 3 hours now. please save my time.

@docmojoman
Copy link

docmojoman commented Oct 11, 2018

I am also having the same problem. I am running Laravel 5.6.38. I also have gd2, exif and fileinfo enabled on my valet setup.

screen shot 2018-10-11 at 3 31 15 am

Debugging
Earlier posts referring to this same problem mention a debug script php ./vendor/unisharp/laravel-filemanager/bin/debug, but it doesn't exist in this version (1.9.2) of laravel-filemanager.

Is there a way to do debug this version?

@streamtw
Copy link
Member

If you are using v2.0.0-alpha4, there is a bug which will cause "Invalid upload request". Please upgrade to v2.0.0-alpha5.

@oleghalin
Copy link

@g0110280

If you are using v2.0.0-alpha4, there is a bug which will cause "Invalid upload request". Please upgrade to v2.0.0-alpha5.

I am using alpha5, still have this bug with Digital Ocean Spaces Storage disk.

@docmojoman
Copy link

docmojoman commented Oct 27, 2018

@oleghalin

I am using alpha5, still have this bug with Digital Ocean Spaces Storage disk.

Did you run php artisan storage:link ?

@oleghalin
Copy link

@oleghalin

I am using alpha5, still have this bug with Digital Ocean Spaces Storage disk.

Did you run php artisan storage:link ?

@docmojoman yes, i am, btw i am using DO Spaces

@docmojoman
Copy link

@oleghalin

I am using alpha5, still have this bug with Digital Ocean Spaces Storage disk.

Did you run php artisan storage:link ?

@docmojoman yes, i am, btw i am using DO Spaces

alpha5 fixed my local installation. When I deployed to my Digital Ocean (I don't use Spaces) server I forgot to run storage:link and I was getting blank uploads.

@nebed
Copy link

nebed commented Oct 27, 2018

@docmojoman I still have this error on alpha5, please how do i fix? I use Amazon s3 storage, when i use local server storage it works fine, but once i link s3 it happens.

@streamtw streamtw reopened this Oct 29, 2018
@streamtw streamtw added the WIP Working in progress. label Oct 29, 2018
@mnightingale
Copy link
Contributor

If using v2 this may have been fixed by #712 if you are using S3 and have thumbnails enabled.

@oleghalin
Copy link

@mnightingale i will test it ASAP and let you know

@streamtw streamtw added done Issue is fixed. Will be closed in 7 days. and removed WIP Working in progress. labels Dec 5, 2018
@JunaidQadirB
Copy link

It was a permission issue. making the public/files and public/photos folders writable solved the issue for me.

@gelinger777
Copy link

I have the latest dev-master and on s3 Amazon I am getting invalid upload request

@aleksandrpashkovskiy
Copy link

From the root folder of the project, try typing in the command line

sudo chown -R $USERNAME:www-data public/images
chmod -R 775 public/images

where USERNAME - your user (eg. "root")

@maxbluetang
Copy link

If on Windows, go into your php ini and set this: upload_tmp_dir = "C:\Users{my_user}\AppData\Local\Temp"
StackOverflow Ref:https://stackoverflow.com/questions/45619248/laravel-5-4-fopen-filename-cannot-be-empty

@faysal-web
Copy link

I also face this problem. I think all shared hosting occur this problem. But no one gives a specific solution.

@abishekrsrikaanth
Copy link
Contributor

I am on the latest version of the package. My disk on lfm.php is set to s3 and I get this error. If I set to public, then the upload works fine by the images are blank. I have run storage:link before doing this. The should_create_thumbnails is set to false

@abishekrsrikaanth
Copy link
Contributor

Got this to work with PR #982

@isa95Ar
Copy link

isa95Ar commented Sep 11, 2020

when you run php artisan storage:link your folder permission is going to the hell, run chmod -R 775 your_folder/ and sudo chown -R your_user:your_user your_folder/ can't use root :p

@BippyMiester
Copy link

For anyone that is having this issue... You can solve this by making sure your re-change your permissions on your folders.

read -p 'Site: ' site &&
sudo chown -R :www-data /var/www/$site &&
sudo chmod -R 777 /var/www/$site/storage &&
sudo chmod -R 777 /var/www/$site/bootstrap/cache

@streamtw
Copy link
Member

Looks like a solved issue. Please leave comments or reopen this if it is still a issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done Issue is fixed. Will be closed in 7 days.
Projects
None yet
Development

No branches or pull requests