Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 212
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 200
Total: 200

Author Topic: Can't upload images with uppercase file extensions  (Read 8435 times)

0 Members and 1 Guest are viewing this topic.

Offline BSD2000

  • Member
  • *
  • Posts: 25
  • http://www.VinylAudio.net
    • View Profile
    • VinylAudio.net
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!

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
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?
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline BSD2000

  • Member
  • *
  • Posts: 25
  • http://www.VinylAudio.net
    • View Profile
    • VinylAudio.net
Re: Can't upload images with uppercase file extensions
« Reply #2 on: July 20, 2012, 10:20:47 am »
Yes and yes.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
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?
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Scotchmonster

  • Member
  • *
  • Posts: 11
    • View Profile
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.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
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.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Scotchmonster

  • Member
  • *
  • Posts: 11
    • View Profile
Re: Can't upload images with uppercase file extensions
« Reply #6 on: July 22, 2012, 10:04:20 pm »
Thank you  :)

Offline BSD2000

  • Member
  • *
  • Posts: 25
  • http://www.VinylAudio.net
    • View Profile
    • VinylAudio.net
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?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Can't upload images with uppercase file extensions
« Reply #8 on: July 24, 2012, 01:57:28 pm »
Code: [Select]
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
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
8 Replies
5998 Views
Last post May 30, 2007, 10:27:35 pm
by SMFHacks
4 Replies
7070 Views
Last post May 15, 2008, 11:31:51 pm
by ApplianceJunk
4 Replies
4198 Views
Last post January 21, 2012, 07:57:44 pm
by Eudemon
9 Replies
6364 Views
Last post May 14, 2012, 03:44:05 pm
by ApplianceJunk
8 Replies
7369 Views
Last post July 15, 2015, 11:04:19 am
by pasqualino77

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal