Forum Message Attachments 2014-06-26, 09:18:56 Isn't 15 kb too small for anything really? What's the point of attachments? How to use them?To me they look useles, so I suggest either removing the functionality until it becomes useful, or to beef it up somehow. Is it possible to divert attachments functionality to use the space in some other service, such as someone's dropbox?
Re: Forum Message Attachments Reply #1 – 2014-06-26, 10:50:14 It can be useful for sharing e.g. UserJS and UserCSS. Also see this topic on the testing board.You'll notice the allowed file types reflect this intent: "Allowed file types: css, js, py, odt, xlsx, txt, tar.lz, zip". (PS I've now changed that to include PNG and JPG.)That being said, properly crafted screenshots can usually remain quite small.Quote from: FrenzieA screenshot of your comment is 16kB in PNG. Subsequently running pngquant gives a 6.2kB result with no discernible loss in quality. A libjpeg optimized JPEG looks alright at 14-18kB, but it has some relatively minor artifacts. You can easily reach about 6kB with JPEG as well, but the artifacts then become really distracting to the point where it looks more like one of those illegible CAPTCHAs.These results indicate that the system should check how filesize compares between e.g. carefully crafted PNGs and its own low-quality JPEGs, otherwise it shoots itself in the foot. For that matter, it really shouldn't add another layer of noise to a properly optimized JPEG either. In the past I've uploaded a JPEG to Facebook, which consequently made the file bulkier and uglier.Above all, however, this blog is not Facebook. Like I indicated before, screenshots are doubtless the primary use case, not photos. I'd say simply reject all images over 200kB, or possibly even as little as 50kB. Give some pointers about how to optimize files, but don't let the system muck about with it. I know, tough love, but I see no added value in shrunk low-quality JPEG images.From: http://blogs.opera.com/desktop/2013/10/welcome-to-the-new-home-of-desktop-blog/#comment-1106162856There's some stuff to think about here. When I wrote that, I had no idea Opera would be tossing out most of their forums, although given the lack of updates I wasn't expecting the My Opera mail to live on for much longer.Realistically, 15kB is a bit harsh, but note that I was able to replicate the screenshot in this post in under 15kB using the methods described in my quote above. I'll probably double the limit to 30kB per attachment.
Re: Forum Message Attachments Reply #2 – 2014-06-27, 02:43:30 Good to have it spelled out like this. It will work as instructions for new members now
Forum Message Attachments Reply #3 – 2015-07-13, 06:45:55 Do any updates recently?Try visiting another forum and see if the attachments work there.
Re: Forum Message Attachments Reply #4 – 2015-07-13, 07:19:57 I'm afraid the attachment size limit is still 30 kB.
Re: Forum Message Attachments Reply #5 – 2015-07-20, 00:48:47 I cannot upload attachments. The error is:Cannot access attachments upload path!The upload is a .txt file.Edit:The contents of the text file exceeds the 20 000 character limit and that's why I could not put it in the main message body. Could this be the reason why it doesn't upload as attachment either? Last Edit: 2015-07-20, 07:20:20 by ersi
Re: Forum Message Attachments Reply #6 – 2015-07-20, 08:22:44 The error is what it says it is. Changing servers changed directory structures. That being said, such a large file might benefit from compression, even in simple zip form.
Re: Forum Message Attachments Reply #8 – 2015-07-20, 08:38:38 But what if it were only 2 kB? Anyhow, I forgot to say that I replied after I fixed the path.