Previous Thread
Next Thread
Print Thread
Hop To
#263782 04/23/2020 1:42 PM
Joined: Jun 2006
Posts: 856
Likes: 16
Morgan Offline OP
Old Hand
OP Offline
Old Hand
Joined: Jun 2006
Posts: 856
Likes: 16
Hi

a member is requesting that I allow photos from Iphone to be uploaded to the forum as attatchment.

At the moment I have this setting
.gif,.GIF,.jpg,.JPG,.txt,.pdf,.PDF
Can I add format to this line in order to be able to upload Iphone/Ipad photos?

Thanks
Morgan


Morgan Johansson
BritBike Forum
http://www.britbike.com/forums/ubbthreads.php
Joined: Dec 2003
Posts: 6,286
Likes: 45
Offline
Joined: Dec 2003
Posts: 6,286
Likes: 45
I believe it is png for the iphone photos.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 16,022
Likes: 60
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,022
Likes: 60
I see you're missing .png and .jpeg from your list; its not case sensitive, so all you need is:
.gif,.jpg,.jpeg,.png

Then whatever file attachment extensions you want to support such as:
.css,.txt,.pdf,.gz,.rar,.tar,.tgz,.zip

UBBDev uses:
.gif,.jpg,.jpeg,.png,.css,.txt,.pdf,.gz,.rar,.tar,.tgz,.zip


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
1 member likes this: isaac
Joined: Apr 2004
Posts: 1,825
Likes: 108
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,825
Likes: 108
The defaults are:
Code
.gif,.jpg,.jpeg,.png,.txt,.pdf,.gz,.rar,.tar,.tgz,.zip

There are no specific file extensions about screenshots and photos taken from iPhones / Apple iOS.

Attached Images
UBBT774attachments.png

Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Work In Progress: soon
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Dec 2003
Posts: 6,286
Likes: 45
Offline
Joined: Dec 2003
Posts: 6,286
Likes: 45
Also be aware that modern phones such as the iphone 11 have a default setting of extremely large file sizes.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 856
Likes: 16
Morgan Offline OP
Old Hand
OP Offline
Old Hand
Joined: Jun 2006
Posts: 856
Likes: 16
Thanks for your answers,

I have a 8mb limit for each files and 64mb in total for an upload.
up to now I have avoided png as it creates larger files onto my server than jpg does.

regarding below formats, what should one avoid or what format can create harm if uploaded?
I'm thinking formats like gz,.rar,.tar,.tgz,.zip who could contain malicious files

Quote
.gif,.jpg,.jpeg,.png,.txt,.pdf,.gz,.rar,.tar,.tgz,.zip

so could it be a good idea to use .gif,.jpg,.jpeg,.png,.txt,.pdf ? or even remove the pdf option


Morgan Johansson
BritBike Forum
http://www.britbike.com/forums/ubbthreads.php
Joined: Jun 2006
Posts: 16,022
Likes: 60
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,022
Likes: 60
Well, if you're on a dedicated machine you'll want to make sure any malware scanner or virus definitions on the machine are up to date regularly which should scan all of your attachments (including any archive extensions which are not password protected).

Its up to you to set whatever file limitations you'd like; I offer programs and often have software creators on one of my forums which use archives to include program files or multiple files so we allow .gz/.rar/.tgz/.zip which are common web archive formats.

If you don't see the need to support .pdfs, don't support it.

As for .png and .jpg/,jpeg; you asked which formats apple devices produce by default, those are .jpeg (images) and .png (screen shots).


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
2 members like this: Morgan, isaac
Joined: Jun 2006
Posts: 856
Likes: 16
Morgan Offline OP
Old Hand
OP Offline
Old Hand
Joined: Jun 2006
Posts: 856
Likes: 16
Gizmo

so I kept these formats now.
.gif,.jpg,.jpeg,.png,.txt

Thank you guys for your comments!

Cheers


Morgan Johansson
BritBike Forum
http://www.britbike.com/forums/ubbthreads.php

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PM limits
by jjjjj - 01/07/2021 12:59 PM
FAQ is blank?
by Bad Frog - 01/06/2021 12:01 PM
IP Addresses Of Users
by tinker123 - 01/03/2021 3:07 PM
User display name gets chopped
by - 12/25/2020 1:08 PM
Who's Online Now
0 members (), 35 guests, and 75 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
gallery test
gallery test
by Mors, September 23
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 7.7.5