SMFHacks.com
SMFHacks
Community Suite
SMF Gallery Pro
SMF Store
SMF Classifieds
Newsletter Pro
Downloads System Pro
Ad Seller Pro
Badge Awards
Hacks and Mods
Latest SMF Hacks
TopTen Hacks
Styles and Themes
Add a Hack
Manage Hacks
Earn Money from Your Forum with these tips
SMF Theme Generator
SMF Package Parser
Free SMF Hosting
Buy Website Traffic
Site Showcase
Email Marketing Software
Search Forums
Advanced search
User
Welcome,
Guest
. Please
login
or
register
.
May 24, 2013, 04:04:15 pm
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Stats
Members
Total Members: 10768
Latest:
CayoTTe
Stats
Total Posts: 32401
Total Topics: 5481
Online Today: 57
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 1
Guests: 33
Total: 34
SMFHacks.com
Forum
SMF Classifieds
Support
Can't upload images with uppercase file extensions
0 Members and 1 Guest are viewing this topic.
« previous
next »
Pages:
[
1
]
Author
Topic: Can't upload images with uppercase file extensions (Read 2364 times)
BSD2000
Community Suite Customer
Inline PM Customer
Offline
Posts: 17
Can't upload images with uppercase file extensions
«
on:
July 19, 2012, 07:05:24 pm »
I just noticed that if you select an image with a extension in uppercase, (ie; IMAGE000.JPG) the image fails to upload and you get the error message that the image file type is not supported.
It looks like after you browse to the image and select it, the case of the file extension changes to lowercase (IMAGE000.JPG changes to IMAGE000.jpg).
Is there a way to edit the accepted file types to include upper and lowercase? Where is the code located that parses the file extension and does it purposely modify the case for a reason?
This is happening on a test server running IIS v6.0 (Server 2003 OS), SMF v2.0.2, MySQL v5.5.25a, PHP v5.3.14
Thanks!
Logged
SMFHacks
Administrator
Hero Member
Offline
Posts: 11007
Re: Can't upload images with uppercase file extensions
«
Reply #1 on:
July 19, 2012, 07:31:33 pm »
Just want to clarify this is for SMF Classifieds right? And if so is that when adding a picture to a listing?
Logged
BSD2000
Community Suite Customer
Inline PM Customer
Offline
Posts: 17
Re: Can't upload images with uppercase file extensions
«
Reply #2 on:
July 20, 2012, 10:20:47 am »
Yes and yes.
Logged
SMFHacks
Administrator
Hero Member
Offline
Posts: 11007
Re: Can't upload images with uppercase file extensions
«
Reply #3 on:
July 20, 2012, 10:29:41 am »
Hmm I was able to upload on my test site without issue. I run SMF 2.0 on IIS6 windows server 2003
What is the exact message?
Can you attach the graphics that fails?
Logged
Scotchmonster
Inline PM Customer
Offline
Posts: 11
Re: Can't upload images with uppercase file extensions
«
Reply #4 on:
July 22, 2012, 06:49:46 pm »
I was wondering if the number of images allowed can nbe changed?
I can't seem to upload more than 5 images.
Any help is much appreciated Thank you in advance.
Logged
SMFHacks
Administrator
Hero Member
Offline
Posts: 11007
Re: Can't upload images with uppercase file extensions
«
Reply #5 on:
July 22, 2012, 08:48:20 pm »
Per listing? That is a category level option. You can set the max allowed images when you edit the category.
Logged
Scotchmonster
Inline PM Customer
Offline
Posts: 11
Re: Can't upload images with uppercase file extensions
«
Reply #6 on:
July 22, 2012, 10:04:20 pm »
Thank you
Logged
BSD2000
Community Suite Customer
Inline PM Customer
Offline
Posts: 17
Re: Can't upload images with uppercase file extensions
«
Reply #7 on:
July 24, 2012, 01:54:29 pm »
I think I figured out the problem, the error message is a 'false positive' that occurs when the PHP.INI upload file size is set too low (in my case, 2MB) and the image file size being uploaded exceeds that. If I upload an image that is too large, I think the upload cuts off @ 2MB and the file looks corrupt when examined afterwards, so it reports back that the file type is invalid instead of reporting the file size was too large. In other words, it looks like the image handler can't tell if the file was too large and was cut off during the upload due to exceeding the max upload settings in the PHP.INI file.
Is there a way to test the file size before attempting the upload? Maybe report to the user that the file size is too large before attempting the upload instead of allowing the file to be cut off and corrupted after a partial upload?
Logged
SMFHacks
Administrator
Hero Member
Offline
Posts: 11007
Re: Can't upload images with uppercase file extensions
«
Reply #8 on:
July 24, 2012, 01:57:28 pm »
Code:
Is there a way to test the file size before attempting the upload? Maybe report to the user that the file size is too large before attempting the upload instead of allowing the file to be cut off and corrupted after a partial upload?
Not that I know of.
I do have a guide found here on how to increase the php upload limits
http://www.smfhacks.com/index.php/topic,3498.0.html
Logged
Pages:
[
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
SMFHacks.com
-----------------------------
=> News
=> Site Discussion
===> Suggestions
===> Bugs
-----------------------------
SMF Gallery Pro
-----------------------------
=> Announcements
=> Presales
=> Support
===> Bugs
===> Feature Requests
-----------------------------
SMF Store
-----------------------------
=> Announcements
=> Presales
=> Support
===> Guides and Tips
===> Feature Requests
===> Bugs
-----------------------------
SMF Classifieds
-----------------------------
=> Announcements
=> Presales
=> Support
===> Bugs
===> Feature Requests
-----------------------------
Downloads System Pro
-----------------------------
=> Announcements
=> Presales
=> Support
===> Feature Requests
===> Bugs
-----------------------------
Ad Seller Pro
-----------------------------
=> Presales
=> Support
-----------------------------
Menu Editor Pro
-----------------------------
=> Presales Menu Editor Pro
=> Bug Reports
-----------------------------
Inline Personal Messages
-----------------------------
=> Presales
=> Support
=> Bug Reports
-----------------------------
Newsletter Pro
-----------------------------
=> Presales
=> Support
===> Feature Requests
-----------------------------
Badge Awards
-----------------------------
=> Presales
=> Support
-----------------------------
Tweet Topics/FB Post System
-----------------------------
=> Presales
-----------------------------
Social Login Pro
-----------------------------
=> Presales
-----------------------------
SMF Gallery Lite
-----------------------------
=> SMF Gallery Lite
-----------------------------
Modifications/Themes
-----------------------------
=> General SMF Forum
=> Modifications Talk
===> Latest Mods
===> Modification Showcase
=> Theme Talk
===> Theme Showcase
===> Latest Themes
Recent
Code for ultimate Profile
by
SMFHacks
[
Today
at 03:59:57 pm]
sending emails
by
SMFHacks
[
Today
at 03:59:22 pm]
Parent and children Badge...
by
SMFHacks
[
Today
at 03:58:47 pm]
Badge block
by
SMFHacks
[
Today
at 03:57:55 pm]
Why i need a PP-Business-...
by
SMFHacks
[May 23, 2013, 08:29:56 pm]
Simple Audio Video Embede...
by
tuberose
[May 23, 2013, 04:50:21 am]
news letter pro cant find...
by
ozzie4x4
[May 22, 2013, 10:03:30 pm]
Automated newsletter of r...
by
SMFHacks
[May 22, 2013, 03:00:09 pm]
Help me program these awa...
by
Draffi
[May 22, 2013, 03:03:31 am]
[Request] - Award for any...
by
SMFHacks
[May 21, 2013, 12:22:02 am]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Loading...