Page 1 of 2

Attachments - allowed file types?

Posted: Sat Jul 25, 2020 12:47 am
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.

Re: Attachments - allowed file types?

Posted: Sat Jul 25, 2020 1:29 am
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 719 times

Re: Attachments - allowed file types?

Posted: Mon Aug 03, 2020 1:27 pm
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.

Re: Attachments - allowed file types?

Posted: Mon Aug 03, 2020 3:34 pm
by rockedge
[mention]MochiMoppel[/mention]

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

Update: FIXED

Please test and report.

Re: Attachments - allowed file types?

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

I am getting this:
Error

Sorry, the board attachment quota has been reached.

Re: Attachments - allowed file types?

Posted: Tue Aug 04, 2020 1:08 am
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.

Re: Attachments - allowed file types?

Posted: Tue Aug 04, 2020 1:12 am
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.

Re: Attachments - allowed file types?

Posted: Tue Aug 04, 2020 1:14 am
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 :(

Re: Attachments - allowed file types?

Posted: Tue Aug 04, 2020 1:18 am
by rockedge
[mention]MochiMoppel[/mention]
Hmmm I just adjusted the settings. Is it still unresponsive?

Re: Attachments - allowed file types?

Posted: Tue Aug 04, 2020 1:21 am
by rockedge
the /etc/apache2 directory
Screenshot.png
Screenshot.png (22.86 KiB) Viewed 620 times

Re: Attachments - allowed file types?

Posted: Tue Aug 04, 2020 1:25 am
by rockedge
trying 32bit PET for DOSBox

Re: Attachments - allowed file types?

Posted: Tue Aug 04, 2020 1:30 am
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.

Re: Attachments - allowed file types?

Posted: Tue Aug 04, 2020 1:35 am
by rockedge
[mention]MochiMoppel[/mention] ,

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

Image

Re: Attachments - allowed file types?

Posted: Tue Aug 04, 2020 1:37 am
by MochiMoppel
Same error with SVG

Re: Attachments - allowed file types?

Posted: Tue Aug 04, 2020 2:10 am
by rockedge
arri_lamp.xpm.gz
(72.82 KiB) Downloaded 46 times
puppy.svg.gz
(662 Bytes) Downloaded 46 times

Re: Attachments - allowed file types?

Posted: Tue Aug 04, 2020 2:42 am
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.

Re: Attachments - allowed file types?

Posted: Tue Aug 04, 2020 3:21 am
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 662 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?

Re: Attachments - allowed file types?

Posted: Tue Aug 04, 2020 2:37 pm
by bigpup
test.
external-content.duckduckgo.com.jpeg
external-content.duckduckgo.com.jpeg (31.11 KiB) Viewed 637 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.

Re: Attachments - allowed file types?

Posted: Tue Aug 04, 2020 8:05 pm
by rockedge
Attaching 2 small gif files
cool.gif
cool.gif (696 Bytes) Viewed 617 times
happy.gif
happy.gif (699 Bytes) Viewed 617 times

Re: Attachments - allowed file types?

Posted: Tue Aug 04, 2020 11:05 pm
by Geoffrey
Good source of SVG Emoji's https://getemoji.com 🐶🦴🏴‍☠️

Re: Attachments - allowed file types?

Posted: Tue Aug 04, 2020 11:42 pm
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

Re: Attachments - allowed file types?

Posted: Tue Aug 04, 2020 11:50 pm
by rockedge
[mention]MochiMoppel[/mention]

Just increased to 7 for post and PM.

Re: Attachments - allowed file types?

Posted: Wed Aug 05, 2020 12:05 am
by MochiMoppel
Thanks.
What is the max file size per attachment?

Re: Attachments - allowed file types?

Posted: Wed Aug 05, 2020 6:45 am
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

Re: Attachments - allowed file types?

Posted: Thu Aug 06, 2020 3:12 am
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

Re: Attachments - allowed file types?

Posted: Thu Aug 06, 2020 7:16 am
by stemsee
Is the maximum image resolution/size the same?

Re: Attachments - allowed file types?

Posted: Thu Aug 06, 2020 7:44 am
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

Re: Attachments - allowed file types?

Posted: Thu Aug 06, 2020 12:09 pm
by stemsee
So it does ... "moonrise_erie-co-large.png (625.43 KiB) Viewed 62 times"

Re: Attachments - allowed file types?

Posted: Thu Aug 06, 2020 1:53 pm
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.

Re: Attachments - allowed file types?

Posted: Sun Aug 09, 2020 7:21 pm
by rockedge
Hello !!

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

**