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

0 Members and 1 Guest are viewing this topic.

Offline cdev

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

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

Offline tablatronixTopic starter

  • Regular Contributor
  • *
  • Posts: 199
  • Country: us
Re: Forum admin.. add jpeg file extension for upload pls
« Reply #26 on: December 08, 2017, 12: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 tablatronixTopic starter

  • Regular Contributor
  • *
  • Posts: 199
  • Country: us
Re: Forum admin.. add jpeg file extension for upload pls
« Reply #27 on: December 08, 2017, 12: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 Ampera

  • Super Contributor
  • ***
  • Posts: 2578
  • Country: us
    • Ampera's Forums
Re: Forum admin.. add jpeg file extension for upload pls
« Reply #28 on: December 08, 2017, 02:36:33 am »
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.
I forget who I am sometimes, but then I remember that it's probably not worth remembering.
EEVBlog IRC Admin - Join us on irc.austnet.org #eevblog
 

Offline TerraHertz

  • Super Contributor
  • ***
  • Posts: 3958
  • 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, 03:00:51 am »
Just thought I'd mention Advanced Renamer. https://www.advancedrenamer.com/
Collecting old scopes, logic analyzers, and unfinished projects. http://everist.org
 

Online Circlotron

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

Offline Halcyon

  • Global Moderator
  • *****
  • Posts: 5629
  • Country: au
Re: Forum admin.. add jpeg file extension for upload pls
« Reply #31 on: December 08, 2017, 04:26:11 am »
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

  • Super Contributor
  • ***
  • Posts: 7358
  • Country: au
  • Toys so very many Toys.
Re: Forum admin.. add jpeg file extension for upload pls
« Reply #32 on: December 08, 2017, 05:10:22 am »
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. Also CNC wannabe, 3D printer and Laser Cutter Junkie and just don't mention my TEA addiction....
 

Offline Jeroen3

  • Super Contributor
  • ***
  • Posts: 4067
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: Forum admin.. add jpeg file extension for upload pls
« Reply #33 on: December 08, 2017, 07:01:48 am »
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, 07:04:47 am by Jeroen3 »
 
The following users thanked this post: tooki, tablatronix


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf