-
-
Notifications
You must be signed in to change notification settings - Fork 95
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
2 issues : image file type change to ’.jpeg‘, and big image file upload error. #62
Comments
I disagree. But feel free to offer proper argumentation so at least I have the chance to reconsider, because "not necessary" and "just wrong" doesn't tell me a thing. The reason to do so is to force actual mime types to be used. This prevents abuse of the upload feature. Feel free to read this article and tell me what you think afterward. Related to the second thing, what error do you get. Uploads still have to be handled by the frontend, I haven't taken into account (nor done any tests with) long running uploads yet (eg movies of several hundreds megabytes). |
Mind you, there are 6 different accepted JPEG extensions (.jpg, .jpeg, .jpe, .jif, .jfif, .jfi) and they all should work the same. That's because the MIME type is all JPEG. So, no, it's not wrong and while it might not be necessary it provides some consistency for the extension (which now can look for just one file type instead of 6). |
@jordanjay29 @luceos so great thinking. i have no word to comment. just 3.5mb jpg and i get error. but when i use Image Upload 0.3.1, all fine. |
by the way, jpg is more popular than jpeg, why not auto change to jpg. |
Do you see any errors in your webserver log or |
@DearTanker You should check There are similar limits within the webserver config. for nginx check: |
I've improved error handling of the upload methods. They now verify ini-settings and throw related exceptions. Not going to change logic for jpeg file types. |
issues 1 : when .jpg upload , it auto change to .jpeg .
issues 2 : when upload a image with more than 2mb , get error and upload fail .PHP configer is ok with 20mb max upload(post_max_size、upload_max_filesize),and 40s max_execution_time.
The text was updated successfully, but these errors were encountered: