It is currently Thu Mar 28, 2024 4:10 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 34 posts ]  Go to page 1, 2  Next
Author Message
Offline
 Post subject: File attachment types
Post #1 Posted: Fri Apr 23, 2010 10:01 pm 
Lives with ko
User avatar

Posts: 130
Location: UK, Nr. London
Liked others: 163
Was liked: 67
Rank: 3k EGF 3k KGS
I just tried to attach a .pdf file.

The board blocked it with "The extension pdf is not allowed."

Is this intentional? What file extensions are allowed?

Top
 Profile  
 
Offline
 Post subject: Re: File attachment types
Post #2 Posted: Fri Apr 23, 2010 10:02 pm 
Site Admin
User avatar

Posts: 1125
Location: Allegan, MI, USA
Liked others: 18
Was liked: 121
Rank: KGS 9k
Universal go server handle: Jordus
Go ahead and try it now...

_________________
I'm thinking...


This post by Jordus was liked by: Bonobo
Top
 Profile  
 
Offline
 Post subject: Re: File attachment types
Post #3 Posted: Fri Apr 23, 2010 10:10 pm 
Site Admin
User avatar

Posts: 1125
Location: Allegan, MI, USA
Liked others: 18
Was liked: 121
Rank: KGS 9k
Universal go server handle: Jordus
100% sure it works now.

_________________
I'm thinking...

Top
 Profile  
 
Offline
 Post subject: Re: File attachment types
Post #4 Posted: Fri Apr 23, 2010 10:22 pm 
Lives with ko
User avatar

Posts: 130
Location: UK, Nr. London
Liked others: 163
Was liked: 67
Rank: 3k EGF 3k KGS
Thanks. Works fine now.

Top
 Profile  
 
Offline
 Post subject: Re: File attachment types
Post #5 Posted: Tue Sep 18, 2018 6:35 pm 
Lives in gote

Posts: 580
Location: Adelaide, South Australia
Liked others: 207
Was liked: 264
Rank: Australian 2 dan
GD Posts: 200
Same problem here, but with .csv and .txt extensions. Can you clarify whether it's by design or a bug?

Top
 Profile  
 
Offline
 Post subject: Re: File attachment types
Post #6 Posted: Wed Sep 19, 2018 4:19 am 
Honinbo

Posts: 9545
Liked others: 1600
Was liked: 1711
KGS: Kirby
Tygem: 커비라고해
xela wrote:
Same problem here, but with .csv and .txt extensions. Can you clarify whether it's by design or a bug?


Not a bug, per se. it's just that there is a whitelist if allowed extensions for uploading. We disallow filed with arbitrary extension types to be uploaded. I don't see harm in csv or txt, so I've whitelisted them.

_________________
be immersed


This post by Kirby was liked by: Bonobo
Top
 Profile  
 
Offline
 Post subject:
Post #7 Posted: Wed Sep 19, 2018 6:07 am 
Honinbo
User avatar

Posts: 8859
Location: Santa Barbara, CA
Liked others: 349
Was liked: 2076
GD Posts: 312
Is .png disallowed for images ?

Ugh, yes. On iOS, a default screenshot is saved as a .jpg.
But iOS's Photos app's Crop function saves it as .png, which is disallowed for image upload here... :-?

Is there a problem with allowing .png attachment here ?

Top
 Profile  
 
Offline
 Post subject: Re:
Post #8 Posted: Wed Sep 19, 2018 7:39 am 
Lives in gote

Posts: 388
Liked others: 295
Was liked: 64
IGS: 4k
Universal go server handle: BlindGroup
EdLee wrote:
Is .png disallowed for images ?

Ugh, yes. On iOS, a default screenshot is saved as a .jpg.
But iOS's Photos app's Crop function saves it as .png, which is disallowed for image upload here... :-?

Is there a problem with allowing .png attachment here ?


I haven't had a problem uploading png files. I've posted a few images on my journal in this format.

Top
 Profile  
 
Offline
 Post subject:
Post #9 Posted: Wed Sep 19, 2018 3:30 pm 
Honinbo
User avatar

Posts: 8859
Location: Santa Barbara, CA
Liked others: 349
Was liked: 2076
GD Posts: 312
Hi BlindGroup,

Thanks. Were you using iOS Photos to crop a jpg photo, which became a png on your iOS device -- and you were able to upload it here ? :)

Top
 Profile  
 
Offline
 Post subject: Re: File attachment types
Post #10 Posted: Wed Sep 19, 2018 4:04 pm 
Honinbo

Posts: 9545
Liked others: 1600
Was liked: 1711
KGS: Kirby
Tygem: 커비라고해
gif, jpeg, jpg, png, tga, tif, and tiff are the currently allowed image types

_________________
be immersed

Top
 Profile  
 
Offline
 Post subject: Re:
Post #11 Posted: Wed Sep 19, 2018 6:32 pm 
Lives in gote

Posts: 388
Liked others: 295
Was liked: 64
IGS: 4k
Universal go server handle: BlindGroup
EdLee wrote:
Hi BlindGroup,

Thanks. Were you using iOS Photos to crop a jpg photo, which became a png on your iOS device -- and you were able to upload it here ? :)


They were crops of screen shots in Windows saved as png.

Top
 Profile  
 
Online
 Post subject: Re: File attachment types
Post #12 Posted: Wed Sep 19, 2018 8:11 pm 
Oza
User avatar

Posts: 2401
Location: Tokyo, Japan
Liked others: 2338
Was liked: 1332
Rank: Jp 6 dan
KGS: ez4u
Ed, are you talking about the case of using image tags rather than just "attaching" a png file?

_________________
Dave Sigaty
"Short-lived are both the praiser and the praised, and rememberer and the remembered..."
- Marcus Aurelius; Meditations, VIII 21

Top
 Profile  
 
Offline
 Post subject:
Post #13 Posted: Wed Sep 19, 2018 10:12 pm 
Honinbo
User avatar

Posts: 8859
Location: Santa Barbara, CA
Liked others: 349
Was liked: 2076
GD Posts: 312
Hi Dave, Kirby,

1. iOS Photos app: Crop a screenshot, save it to iOS "Photo Library"
2. L19 > Post Reply > Filename > tap "Choose File" button
3. iOS > iphone "Photo Library" > pick cropped photo from (1)
4. tap "Add the file"
5. Error message: Image file type mismatch: expected extension jpg but extension png given
Screenshot:
Attachment:
IMG_0295.PNG
IMG_0295.PNG [ 113.22 KiB | Viewed 53814 times ]

Top
 Profile  
 
Offline
 Post subject: Re: File attachment types
Post #14 Posted: Thu Sep 20, 2018 1:46 am 
Lives in gote

Posts: 502
Liked others: 1
Was liked: 153
Rank: KGS 2k
GD Posts: 100
KGS: Tryss
What's the filename extension?

Top
 Profile  
 
Offline
 Post subject:
Post #15 Posted: Thu Sep 20, 2018 2:13 am 
Honinbo
User avatar

Posts: 8859
Location: Santa Barbara, CA
Liked others: 349
Was liked: 2076
GD Posts: 312
Hi Tryss,

It's iOS; files and filenames are not readily shown.
Please see the reproducible steps and error message in post 13.

The error message, raw, uncropped screenshot in post 13 was .PNG.

The iOS Photos cropped photo has an unknown extension, since L19 refuses to upload it ( please see step 5, post 13, of the error message ).

This one off the net is .JPG:
Attachment:
IMG_0278.JPG
IMG_0278.JPG [ 149.31 KiB | Viewed 53793 times ]

Top
 Profile  
 
Offline
 Post subject: Re:
Post #16 Posted: Thu Sep 20, 2018 3:17 am 
Lives in gote

Posts: 502
Liked others: 1
Was liked: 153
Rank: KGS 2k
GD Posts: 100
KGS: Tryss
EdLee wrote:
Hi Tryss,

It's iOS; files and filenames are not readily shown.
Please see the reproducible steps and error message in post 13.


That's why I ask this question : If you're trying to upload a jpg trying to make it pass as a png (or the opposite), the rejection makes sense.

I got the same error message if I rename a .jpg as a .png and try to upload it.

Top
 Profile  
 
Offline
 Post subject:
Post #17 Posted: Thu Sep 20, 2018 4:37 am 
Honinbo
User avatar

Posts: 8859
Location: Santa Barbara, CA
Liked others: 349
Was liked: 2076
GD Posts: 312
Hi Tryss,

Hmm, thanks. I thought we were past the 1980's DOS era where a filetype was determined by its extension ( which is easier to rename ), and not by its binary "header" bytes ( which is more involved to mess with ). Sigh.
I'm not trying to pass anything as anything else, as the steps show;
but it could be a 'bug' in iOS Photos...

( Looks like nobody else here has experienced this or tried to reproduce the steps on iOS... Oh, well. )

Top
 Profile  
 
Offline
 Post subject: Re:
Post #18 Posted: Thu Sep 20, 2018 6:40 am 
Lives in gote

Posts: 388
Liked others: 295
Was liked: 64
IGS: 4k
Universal go server handle: BlindGroup
EdLee wrote:
Hi Tryss,

Hmm, thanks. I thought we were past the 1980's DOS era where a filetype was determined by its extension ( which is easier to rename ), and not by its binary "header" bytes ( which is more involved to mess with ). Sigh.
I'm not trying to pass anything as anything else, as the steps show;
but it could be a 'bug' in iOS Photos...

( Looks like nobody else here has experienced this or tried to reproduce the steps on iOS... Oh, well. )


Just followed the steps you gave to post this with my iPhone:
Attachment:
8EE69A38-41D9-4298-9EDB-2136F4428B54.jpeg
8EE69A38-41D9-4298-9EDB-2136F4428B54.jpeg [ 200.36 KiB | Viewed 53782 times ]


Seems to work. Although, the system seems to have saved the cropped file as a.jpeg. Phone is running iOS 12.

Top
 Profile  
 
Offline
 Post subject: Re:
Post #19 Posted: Thu Sep 20, 2018 7:08 am 
Lives in gote

Posts: 388
Liked others: 295
Was liked: 64
IGS: 4k
Universal go server handle: BlindGroup
EdLee wrote:
Hi Dave, Kirby,

1. iOS Photos app: Crop a screenshot, save it to iOS "Photo Library"
2. L19 > Post Reply > Filename > tap "Choose File" button
3. iOS > iphone "Photo Library" > pick cropped photo from (1)
4. tap "Add the file"
5. Error message: Image file type mismatch: expected extension jpg but extension png given
Screenshot:
Attachment:
IMG_0295.PNG


Your post made me wonder if there was a way to change the picture format in iOS. I found this for iOS 11: http://osxdaily.com/2017/09/29/change-i ... jpeg-heif/

Could this be the issue? Maybe L19 is reading the header and confusing the new iOS format for PNG. Unfortunately, these features were changed with iOS 12. So, I couldn't experiment on my phone.

Top
 Profile  
 
Offline
 Post subject: Re: File attachment types
Post #20 Posted: Thu Sep 20, 2018 5:21 pm 
Honinbo

Posts: 9545
Liked others: 1600
Was liked: 1711
KGS: Kirby
Tygem: 커비라고해
Just to be sure, how about try to email the screenshot to yourself, and see what the extension really is. If you're ambitious, maybe check to see what the header bytes say about the image type (e.g. http://pwet.fr/man/linux/formats/magic).

If it does turn out that L19 is incorrectly identifying the file's proper type, we could modify this, but this part of control is managed by php, and is not a configurable option through phpbb.

_________________
be immersed

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 34 posts ]  Go to page 1, 2  Next

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group