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

file upload issue #591

Closed
Iamscalla opened this issue Jul 6, 2017 · 3 comments
Closed

file upload issue #591

Iamscalla opened this issue Jul 6, 2017 · 3 comments

Comments

@Iamscalla
Copy link
Contributor

there seems to be an issue with file upload
here is the rules 'event_image' => 'uploaded[event_image]|max_size[event_image,3000]|ext_in[event_image,png,jpg,gif]',

is selected a valid image, but i still got "event_image does not have a valid file extension."

also attempting file upload without validation is another issue, after upload and var_dumped, i get the response below
object(CodeIgniter\HTTP\Files\UploadedFile)#80 (9) { ["path":protected]=> string(50) "C:\xampp\htdocs\eventulize\public\static/eventimg/" ["originalName":protected]=> string(40) "7cb0f576-aa96-4ffd-9828-b05078e0b084.jpg" ["name":protected]=> string(47) "event_image-1499359862_5091b58ce0ada0d6bbbe.tmp" ["originalMimeType":protected]=> string(10) "image/jpeg" ["error":protected]=> int(0) ["hasMoved":protected]=> bool(true) ["size":protected]=> int(145979) ["pathName":"SplFileInfo":private]=> string(24) "C:\xampp\tmp\php1413.tmp" ["fileName":"SplFileInfo":private]=> string(11) "php1413.tmp" }

this event_image-1499359862_5091b58ce0ada0d6bbbe.tmp is supposed to be event_image-1499359862_5091b58ce0ada0d6bbbe.jpg i used the $file->getClientExtension() function, but returns empty

@lonnieezell
Copy link
Member

There was an issue with file extensions for uploaded files that should be fixed now. Please download the latest code and let me know if that fixes it for you.

@Iamscalla
Copy link
Contributor Author

yea worked. Sorry am going after each library piece by piece, observed the image library is still not stable, the base hander does not resize, the imagemagick handler says image process failed on line 164 in the imageMagickHandler

@lonnieezell
Copy link
Member

No problem. And that's a good thing :)

If you've found issues with the image library, please open additional issues for those with as much detail as you can provide about both your environment and what you tried/got.

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

No branches or pull requests

2 participants