Previous Thread
Next Thread
Print Thread
Hop To
#263782 04/23/2020 2:42 PM
Joined: Jun 2006
Posts: 987
Likes: 24
Old Hand
Old Hand
Joined: Jun 2006
Posts: 987
Likes: 24
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
https://www.britbike.com/forums/ubbthreads.php
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
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,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
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,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
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.
Attachments
UBBT774attachments.png


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
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: 987
Likes: 24
Old Hand
Old Hand
Joined: Jun 2006
Posts: 987
Likes: 24
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
https://www.britbike.com/forums/ubbthreads.php
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
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: 987
Likes: 24
Old Hand
Old Hand
Joined: Jun 2006
Posts: 987
Likes: 24
Gizmo

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

Thank you guys for your comments!

Cheers


Morgan Johansson
BritBike Forum
https://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
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
0 members (), 744 guests, and 147 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)