Author Topic: Forum admin.. add jpeg file extension for upload pls  (Read 784 times)

0 Members and 1 Guest are viewing this topic.

Offline cdev

  • Super Contributor
  • ***
  • Posts: 2777
  • Country: 00
  • Friend
Re: Forum admin.. add jpeg file extension for upload pls
« Reply #25 on: December 08, 2017, 11:33:10 AM »
Surveillance?!?

"Everybody's doing it".
"What the large print giveth, the small print taketh away."
 

Offline tablatronix

  • Regular Contributor
  • *
  • Posts: 172
  • Country: us
Re: Forum admin.. add jpeg file extension for upload pls
« Reply #26 on: December 08, 2017, 11:40:25 AM »
You have been running ios 11 for years with icloud optimized photo library and using heif?

Regardless jpeg is a valid and standard jpg file extension and should be added. Thanks.

 

Offline tablatronix

  • Regular Contributor
  • *
  • Posts: 172
  • Country: us
Re: Forum admin.. add jpeg file extension for upload pls
« Reply #27 on: December 08, 2017, 11:57:46 AM »
Dropbox seems like a decent workaround, but you have to upload your photo to it.
Then browse to dropbox from file upload dialogs, huge pain in the ass. Every image convertor
Or resizer i tried only saves jpeg ext.
 

Offline TwoOfFive

  • Super Contributor
  • ***
  • Posts: 1454
  • Country: us
Re: Forum admin.. add jpeg file extension for upload pls
« Reply #28 on: December 08, 2017, 01:36:33 PM »
If the forum software was smart enough, it should be validating files based on file headers, not extensions. Provided an image had the FF D8 FF FE JPEG header, you could call it image.exe and it should still get through.

This is clearly not the case. A bit lazy on the programmers part.

It's free software. Complaints are always followed by the phrase, then you do better.
Making programmers cry since 2002.
If it's broken, it's probably the caps.
 

Offline TerraHertz

  • Super Contributor
  • ***
  • Posts: 2859
  • Country: au
  • Why shouldn't we question everything?
    • It's not really a Blog
Re: Forum admin.. add jpeg file extension for upload pls
« Reply #29 on: December 08, 2017, 02:00:51 PM »
Just thought I'd mention Advanced Renamer. https://www.advancedrenamer.com/
Collecting old scopes, logic analyzers, and unfinished projects. http://everist.org
 

Offline Circlotron

  • Frequent Contributor
  • **
  • Posts: 932
  • Country: au
Re: Forum admin.. add jpeg file extension for upload pls
« Reply #30 on: December 08, 2017, 02:01:46 PM »
It seems you cannot upload .jpeg files, this is a major problem with ios users.
I raised this issue 15 months ago.
http://www.eevblog.com/forum/chat/can't-post-ipad-photo-on-forum/
 
The following users thanked this post: tablatronix

Offline Halcyon

  • Super Contributor
  • ***
  • Posts: 2250
  • Country: au
Re: Forum admin.. add jpeg file extension for upload pls
« Reply #31 on: December 08, 2017, 03:26:11 PM »
If the forum software was smart enough, it should be validating files based on file headers, not extensions. Provided an image had the FF D8 FF FE JPEG header, you could call it image.exe and it should still get through.

This is clearly not the case. A bit lazy on the programmers part.

It's free software. Complaints are always followed by the phrase, then you do better.

Free or not, why cut corners? I've already done better by suggesting it, but I'm not a programmer so I can't implement it.
 

Offline beanflying

  • Regular Contributor
  • *
  • Posts: 160
  • Country: au
  • Toys so very many Toys.
Re: Forum admin.. add jpeg file extension for upload pls
« Reply #32 on: December 08, 2017, 04:10:22 PM »
You all need to understand what the forum software is and is not! It is Simple Machines forum software with some tweaks and mods. It is not software written for EEVblog specifically and to break some of the core code can cause major headaches to update the forum later.

It is far more likely an IOS induced issue than an SMF one. The majority of issues with few forums I have upgraded and made have come from IOS and Microsoft's browsers in about equal amounts. |O

Of more recent times specific mobile themes have become better but if you are stil having trouble then installing Tapatalk will likely solve the tablet IOS issues.
Coffee, Food, R/C and electronics nerd in no particular order :)
 

Offline Jeroen3

  • Super Contributor
  • ***
  • Posts: 2579
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: Forum admin.. add jpeg file extension for upload pls
« Reply #33 on: December 08, 2017, 06:01:48 PM »
There is a string in the forum config that says: "allowed attachments: 'jpg,zip..'.
Adding jpeg to this shouldn't be hard.

To be precise: attachmentCheckExtensions
Code: (php) [Select]
if (!empty($modSettings['attachmentCheckExtensions']))
{
    if (!in_array(strtolower(substr(strrchr($_FILES['attachment']['name'][$n], '.'), 1)), explode(',', strtolower($modSettings['attachmentExtensions']))))
        fatal_error($_FILES['attachment']['name'][$n] . '.<br />' . $txt['cant_upload_type'] . ' ' . $modSettings['attachmentExtensions'] . '.', false);
}

Defaults seem to be: doc,gif,jpg,mpg,pdf,png,txt,zip
I've not seen an mpg in ages.
« Last Edit: December 08, 2017, 06:04:47 PM by Jeroen3 »
 
The following users thanked this post: tooki, tablatronix


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf