Attachments - allowed file types?

Ideas and discussion


User avatar
davids45
Posts: 55
Joined: Mon Jul 06, 2020 2:09 am
Location: Chatswood, NSW
Been thanked: 8 times

Attachments - allowed file types?

Post by davids45 »

G'day,

I'm trying to send a Personal Message Reply to which I want to attach several (well, 12) text files, plus two jpgs.

I cannot find a Forum acceptable file extension for attachments.

I've tried .txt, .tar.xz, .zip, no extension, even .jpg, and none get past the 'Add files' censor.

The FAQ says the Administrator sets the rules for acceptable file attachments but a 'Search' for allowed files types of the forum seemed unsuccessful.

Where should I look for the rule on this?

Thanks.

David S.
User avatar
MochiMoppel
Posts: 1231
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 21 times
Been thanked: 436 times

Re: Attachments - allowed file types?

Post by MochiMoppel »

davids45 wrote: Sat Jul 25, 2020 12:47 amWhere should I look for the rule on this?
In the "All Supported Types" dropdown list after pushing "Add files" button. [mention]rockedge[/mention] may want to customize the list. Fake extensions still seem to work. Check my PM.
PM-filetypes.png
PM-filetypes.png (4.04 KiB) Viewed 723 times
User avatar
MochiMoppel
Posts: 1231
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 21 times
Been thanked: 436 times

Re: Attachments - allowed file types?

Post by MochiMoppel »

[mention]rockedge[/mention] Attachments in PMs are still problematic. Would be great if you could fix this. All file types allowed for public messages should also be allowed for private messages. Apart from JPG and PNG types I also suggest to allow SVG and XPM types. The latter are text files and usually smaller than comparable binary image files.
Thanks for looking into this.
User avatar
rockedge
Site Admin
Posts: 6532
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2744 times
Been thanked: 2619 times
Contact:

Re: Attachments - allowed file types?

Post by rockedge »

[mention]MochiMoppel[/mention]

good idea, I will look into bringing this up to speed!

Update: FIXED

Please test and report.
User avatar
bigpup
Moderator
Posts: 6980
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 902 times
Been thanked: 1520 times

Re: Attachments - allowed file types?

Post by bigpup »

Attachments in general to posts.

I am getting this:
Error

Sorry, the board attachment quota has been reached.

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
taersh
Posts: 951
Joined: Tue Jul 07, 2020 11:13 pm
Location: Germany
Has thanked: 53 times
Been thanked: 119 times

Re: Attachments - allowed file types?

Post by taersh »

bigpup wrote: Tue Aug 04, 2020 12:40 am Attachments in general to posts.

I am getting this:
Error

Sorry, the board attachment quota has been reached.
Yes, that's what I've got a few hours ago when trying to attach a .jpg image - it was a screenshot of content of /usr/local/lib/X11/themes/Ardis, which I tried to attach to this post: viewtopic.php?p=1784#p1784.
I tried several times using .png and .jpg. Tried also by reducing image width smaller than 800 pixel. None worked, always the error message returned.

My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!

User avatar
rockedge
Site Admin
Posts: 6532
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2744 times
Been thanked: 2619 times
Contact:

Re: Attachments - allowed file types?

Post by rockedge »

[mention]bigpup[/mention],

My bad! Thanks for pointing that out. I still had the 50 meg limit set as I was first working with this site.
I have increased it accordingly.
User avatar
MochiMoppel
Posts: 1231
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 21 times
Been thanked: 436 times

Re: Attachments - allowed file types?

Post by MochiMoppel »

This "Sorry, the board attachment quota has been reached." is what I experienced yesterday when I tried to attach screenshots with the "wrong" extension. Tried .png, then .jpg (both triggering error "Invalid file extension"), and when I finally tried to upload a JPG with a fake .mp3 extension, I received this bogus quota error. Verified again today with a different browser: After 3 "wrong" extensions nothing can be uploaded anymore.

Another case: Tried to PM rockedge, quoting his above post: Attaching a .gif file was OK. Tried "Preview" and received error "You cannot use certain BBCodes: [mention]." Removed the [mention] tags from the post and tried again: Same error. Removed whole text and reveived something like "Too few characters". Added some text and tried to upload a XPM file. Didn't work. No error message anymore. "Add" button becomes unresponsive. End of story :(
User avatar
rockedge
Site Admin
Posts: 6532
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2744 times
Been thanked: 2619 times
Contact:

Re: Attachments - allowed file types?

Post by rockedge »

[mention]MochiMoppel[/mention]
Hmmm I just adjusted the settings. Is it still unresponsive?
User avatar
rockedge
Site Admin
Posts: 6532
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2744 times
Been thanked: 2619 times
Contact:

Re: Attachments - allowed file types?

Post by rockedge »

the /etc/apache2 directory
Screenshot.png
Screenshot.png (22.86 KiB) Viewed 624 times
User avatar
rockedge
Site Admin
Posts: 6532
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2744 times
Been thanked: 2619 times
Contact:

Re: Attachments - allowed file types?

Post by rockedge »

trying 32bit PET for DOSBox
Attachments
dosbox-0.74-2-i686.pet
(795.14 KiB) Downloaded 23 times
User avatar
MochiMoppel
Posts: 1231
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 21 times
Been thanked: 436 times

Re: Attachments - allowed file types?

Post by MochiMoppel »

Let's see:
Tried again XPM. Error messagee:"It was not possible to determine the dimensions of the image. Please verify that the URL you entered is correct.". "Add files" button remains responsive. The other error messages described before may have lead to not letting this new dimension error come through and thus block the button. Whatever, it's not working as expected.
User avatar
rockedge
Site Admin
Posts: 6532
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2744 times
Been thanked: 2619 times
Contact:

Re: Attachments - allowed file types?

Post by rockedge »

[mention]MochiMoppel[/mention] ,

Thank you for the report. Is it only the .xpm files throwing errors?

Image
User avatar
MochiMoppel
Posts: 1231
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 21 times
Been thanked: 436 times

Re: Attachments - allowed file types?

Post by MochiMoppel »

Same error with SVG
User avatar
rockedge
Site Admin
Posts: 6532
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2744 times
Been thanked: 2619 times
Contact:

Re: Attachments - allowed file types?

Post by rockedge »

arri_lamp.xpm.gz
(72.82 KiB) Downloaded 46 times
puppy.svg.gz
(662 Bytes) Downloaded 46 times
User avatar
rockedge
Site Admin
Posts: 6532
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2744 times
Been thanked: 2619 times
Contact:

Re: Attachments - allowed file types?

Post by rockedge »

[mention]MochiMoppel[/mention]

this might be it. https://tracker.phpbb.com/browse/PHPBB3-15359

I have tried other fixes but no joy. Odd problem, the servers php is v7.2 and everything is configured correctly.
User avatar
MochiMoppel
Posts: 1231
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 21 times
Been thanked: 436 times

Re: Attachments - allowed file types?

Post by MochiMoppel »

rockedge wrote: Tue Aug 04, 2020 2:42 am @MochiMoppel

this might be it. https://tracker.phpbb.com/browse/PHPBB3-15359
Looks like an unrelated and fixed issue. Let's try to upload a small 100x67 JPG with an Exif size stated as 2400x1600. Seems to work.
ascaled.jpg
ascaled.jpg (45.6 KiB) Viewed 666 times
The phpBB SW seems to have fixed the issue by removing some Exif data. Exif of the uploaded pic:
Camera make     : PENTAX Corporation
Camera model     : PENTAX K100D      
Image timestamp : 2018:12:21 12:40:33
Exposure time   : 1/45 s
Aperture         : F4
Exposure bias   : 0 EV
Flash           : Yes, compulsory
Focal length     : 31.0 mm (35 mm equivalent: 46.0 mm)
ISO speed       : 200
Exposure mode   : Auto
Metering mode   : Multi-segment
Exif Resolution : 2400 x 1600
White balance   : Auto
Thumbnail       : image/jpeg, 5120 Bytes

When downloading the posted pic the "Exif Resolution" line is missing.

Just detected another great feature: I can send PMs to myself. Helps to test and explore PM function.
Also detected a new barrier: I tried to attach 2 tiny gif files, but the second failed with message
Cannot add another attachment, 1 is the maximum.
Really?
User avatar
bigpup
Moderator
Posts: 6980
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 902 times
Been thanked: 1520 times

Re: Attachments - allowed file types?

Post by bigpup »

test.
external-content.duckduckgo.com.jpeg
external-content.duckduckgo.com.jpeg (31.11 KiB) Viewed 641 times
The attachment process seems to be back to normal.
However you are now testing features I have not used.
Anyway, I can attach a image, again.

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
rockedge
Site Admin
Posts: 6532
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2744 times
Been thanked: 2619 times
Contact:

Re: Attachments - allowed file types?

Post by rockedge »

Attaching 2 small gif files
cool.gif
cool.gif (696 Bytes) Viewed 621 times
happy.gif
happy.gif (699 Bytes) Viewed 621 times
User avatar
Geoffrey
Posts: 32
Joined: Wed Jul 15, 2020 10:46 am
Location: Bucca, Queensland, Australia
Has thanked: 2 times
Been thanked: 13 times

Re: Attachments - allowed file types?

Post by Geoffrey »

Good source of SVG Emoji's https://getemoji.com 🐶🦴🏴‍☠️
User avatar
MochiMoppel
Posts: 1231
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 21 times
Been thanked: 436 times

Re: Attachments - allowed file types?

Post by MochiMoppel »

rockedge wrote: Tue Aug 04, 2020 8:05 pm Attaching 2 small gif files
Sure, now try this in a Private Message. :mrgreen:

Apparent limits for regular users in
Private Message: 1 attachment
Public Post: 3 attachments
User avatar
rockedge
Site Admin
Posts: 6532
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2744 times
Been thanked: 2619 times
Contact:

Re: Attachments - allowed file types?

Post by rockedge »

[mention]MochiMoppel[/mention]

Just increased to 7 for post and PM.
User avatar
MochiMoppel
Posts: 1231
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 21 times
Been thanked: 436 times

Re: Attachments - allowed file types?

Post by MochiMoppel »

Thanks.
What is the max file size per attachment?
User avatar
MochiMoppel
Posts: 1231
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 21 times
Been thanked: 436 times

Re: Attachments - allowed file types?

Post by MochiMoppel »

Geoffrey wrote: Tue Aug 04, 2020 11:05 pmGood source of SVG Emoji's https://getemoji.com 🐶🦴🏴‍☠️
[mention]Geoffrey[/mention] Nice, and they don't count as attachments, but how do you know that these are SVG emojis? What this site offers and what you posted are Unicode characters. When I quote your post I see blocks because none of my fonts can display these characters. Now the fascinating part: The forum software replaces these (for most users undisplayable) characters with SVGs it fetches from twitter's site twemoji.maxcdn.com/. You can see the URLs of these SVGs only when you take a look at the page source.

This can become useful. Here are 6 characters of the Unicode block "Miscellaneous Symbols and Pictographs" with their biggest possible size of 200:
🏠🏡🏢🏣🏤🏥
Unicode codepoints and names:
U+1F3E0 HOUSE BUILDING
U+1F3E1 HOUSE WITH GARDEN
U+1F3E2 OFFICE BUILDING
U+1F3E3 JAPANESE POST OFFICE
U+1F3E4 EUROPEAN POST OFFICE
U+1F3E5 HOSPITAL

Fetching their URL from the page source will display them really big. Let's take the second character as an example.:
Image
User avatar
rockedge
Site Admin
Posts: 6532
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2744 times
Been thanked: 2619 times
Contact:

Re: Attachments - allowed file types?

Post by rockedge »

MochiMoppel wrote: Wed Aug 05, 2020 12:05 am What is the max file size per attachment?
For now ->
4 MiB is the max file size for posts
10 MiB for private messages
User avatar
stemsee
Posts: 779
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 131 times

Re: Attachments - allowed file types?

Post by stemsee »

Is the maximum image resolution/size the same?
User avatar
MochiMoppel
Posts: 1231
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 21 times
Been thanked: 436 times

Re: Attachments - allowed file types?

Post by MochiMoppel »

[mention]stemsee[/mention] See viewtopic.php?f=139&t=385
Seems that big images are automatically scaled to fit the width of the forum text area
User avatar
stemsee
Posts: 779
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 8
Has thanked: 185 times
Been thanked: 131 times

Re: Attachments - allowed file types?

Post by stemsee »

So it does ... "moonrise_erie-co-large.png (625.43 KiB) Viewed 62 times"
User avatar
rockedge
Site Admin
Posts: 6532
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2744 times
Been thanked: 2619 times
Contact:

Re: Attachments - allowed file types?

Post by rockedge »

stemsee wrote: Thu Aug 06, 2020 7:16 am Is the maximum image resolution/size the same?
the max image size is 1200px X 800px
any size larger the forum will display a text link to the image.
User avatar
rockedge
Site Admin
Posts: 6532
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2744 times
Been thanked: 2619 times
Contact:

Re: Attachments - allowed file types?

Post by rockedge »

Hello !!

Now SFS files can be attached to posts without having to alter the extension!

**
Post Reply

Return to “Forum Organization & Structure Council”