Skip to content
This repository has been archived by the owner on Oct 31, 2020. It is now read-only.

cannot upload images for no reason #17

Closed
loganfreeman opened this issue Aug 1, 2017 · 3 comments
Closed

cannot upload images for no reason #17

loganfreeman opened this issue Aug 1, 2017 · 3 comments

Comments

@loganfreeman
Copy link

loganfreeman commented Aug 1, 2017

I used your awesome upload module to upload images.

composer.json require

"matriphe/imageupload": "5.*"

form

<input type="file" class="form-control" name="image" accept="image/gif, image/jpeg, image/png">

controller

if ($request->hasFile('image')) {
            Log::debug('Upload images: '.$post->id);
            Imageupload::upload($request->file('image'), $post->id);
        }

config

'newfilename' => 'custom',

However I couldn't upload the following image:

image

I don't know why.

I can upload jpeg, jpg, png, gif files without problems.

weird

@matriphe
Copy link
Owner

matriphe commented Aug 2, 2017

I downloaded your image, and uploaded it successfully on my laptop. Is there any error or exception thrown?

Have you set the max upload size in the php.ini?

What version of Laravel do you use?

@ultrono
Copy link

ultrono commented Aug 8, 2017

Do you have enctype="multipart/form-data" on your form?

@loganfreeman
Copy link
Author

I think maybe there is an upload size limit on it. Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants