How to Attach Photos

Have a suggestion for the forum? Requests? Please share
User avatar
Chip Luck
Reactions:
Posts: 191
Joined: February 11th, 2016, 9:12 am
Location: Central Florida
3D Printer(s): HICTOP Reprap Prusa I3
Contact:

Re: How to Attach Photos

Post by Chip Luck » February 26th, 2016, 8:07 pm

LePaul wrote:Ok, tried your test file...I can see what's happening...goes green uploading then nothing
Yep, very strange is it not? The file size cannot be the issue. FYI: the first file is the virgin version direct from my LG G3 phone download, I wonder... hmm... Try say, changing the color or britghtness on that file, re-save it under a new name and try uploading that. Maybe for some reason the original phone file is 'tainted' some how. Again, uploaded phone files directly to other sites with no issues. Very curious indeed...

Anders Olsson
Reactions:
Posts: 415
Joined: February 8th, 2016, 8:37 pm
Location: Uppsala, Sweden
3D Printer(s): UM2 UM2E, UM2Go, UM3, Delta Tower, Form 1+, Form 2
Contact:

Re: How to Attach Photos

Post by Anders Olsson » February 26th, 2016, 9:50 pm

Had the same issue with a large image lately, even thought it was well below 5 MB.
It was not a huge issue really, just downscaled it to be able to post it.

But anyway, here is the original (5712x5805 pixels, 3.5 Mb) in case you want to try:
https://dl.dropboxusercontent.com/u/102 ... ission.jpg

I am using Opera by the way, which is for sure not the most common browser.

User avatar
LePaul
Reactions:
Posts: 3138
Joined: February 7th, 2016, 10:26 pm
Location: Bangor, Maine USA
3D Printer(s): Ultimaker 2+, FT-5, CR-10, CR-10S, Tevo Tornado
Contact:

Re: How to Attach Photos

Post by LePaul » February 27th, 2016, 12:13 pm

Looks like a few other phpBB guys note this anomaly too. I'm still working on it

User avatar
Amedee
Reactions:
Posts: 599
Joined: February 15th, 2016, 11:10 am
Location: Brussels, Belgium
3D Printer(s): UMO / UMO+
Contact:

Re: How to Attach Photos

Post by Amedee » February 29th, 2016, 6:28 am

It looks like it is really file specific, I can reproduce with Anders' testcase while I can upload all my other files, even bigger ones...

So here is the story:
snap045.png
The file is uploaded in chunks and the browser expects a JSON reply. But with Anders' file, the response to the second chunk is empty, and the javascript (in the browser) crashes with a TypeError.

So the problem occurs on the server side while processing the chunk. So either the client is not sending what the server expects or the server can't handle it properly. But I'm afraid there is some exception handling masking the error o the server side because the server returns a '200' which means success :-(

@LePaul, aren't there any error reporting log files available?
Phil.

User avatar
LePaul
Reactions:
Posts: 3138
Joined: February 7th, 2016, 10:26 pm
Location: Bangor, Maine USA
3D Printer(s): Ultimaker 2+, FT-5, CR-10, CR-10S, Tevo Tornado
Contact:

Re: How to Attach Photos

Post by LePaul » February 29th, 2016, 9:09 am

Let me share that with the phpBB support people...that clue might help!

User avatar
LePaul
Reactions:
Posts: 3138
Joined: February 7th, 2016, 10:26 pm
Location: Bangor, Maine USA
3D Printer(s): Ultimaker 2+, FT-5, CR-10, CR-10S, Tevo Tornado
Contact:

Re: How to Attach Photos

Post by LePaul » February 29th, 2016, 2:26 pm

I wonder if the time needs to be extended?

Resource Limits max_execution_time Maximum execution time of each script, in seconds 120
Resource Limits max_input_time Maximum amount of time each script may spend parsing request data 60

User avatar
Amedee
Reactions:
Posts: 599
Joined: February 15th, 2016, 11:10 am
Location: Brussels, Belgium
3D Printer(s): UMO / UMO+
Contact:

Re: How to Attach Photos

Post by Amedee » February 29th, 2016, 2:59 pm

No, the error comes much faster than that.
If we run into a limit it would rather be memory.

But then again phpBB or php would bark, here we just have nothing.

I haven't touched phpBB code since ages, but I am pretty sure there is debug option somewhere so that it is more verbose when bad things happens. It is normally turned of by default on production site as nobody wants to see php errors/warning on their board ;)
Phil.

User avatar
LePaul
Reactions:
Posts: 3138
Joined: February 7th, 2016, 10:26 pm
Location: Bangor, Maine USA
3D Printer(s): Ultimaker 2+, FT-5, CR-10, CR-10S, Tevo Tornado
Contact:

Re: How to Attach Photos

Post by LePaul » February 29th, 2016, 4:02 pm

I'm awaiting some response to my post over there. We have ample resources, I just upped our server from 512 mb to 2048 mb, and one CPU to two CPUs.

User avatar
Amedee
Reactions:
Posts: 599
Joined: February 15th, 2016, 11:10 am
Location: Brussels, Belgium
3D Printer(s): UMO / UMO+
Contact:

Re: How to Attach Photos

Post by Amedee » March 1st, 2016, 3:10 am

Yes but there is also a 'memory_limit' php parameter which set a 'per process' limit.
Phil.

User avatar
LePaul
Reactions:
Posts: 3138
Joined: February 7th, 2016, 10:26 pm
Location: Bangor, Maine USA
3D Printer(s): Ultimaker 2+, FT-5, CR-10, CR-10S, Tevo Tornado
Contact:

Re: How to Attach Photos

Post by LePaul » March 1st, 2016, 8:54 am

Well we have 2 gb of memory on the server, so plenty to work with
Let me take your suggestion to phpBB

Anders Olsson
Reactions:
Posts: 415
Joined: February 8th, 2016, 8:37 pm
Location: Uppsala, Sweden
3D Printer(s): UM2 UM2E, UM2Go, UM3, Delta Tower, Form 1+, Form 2
Contact:

Re: How to Attach Photos

Post by Anders Olsson » March 1st, 2016, 7:27 pm

Software is really not my expertise, so I am afraid I can not help much, but I just recalled that the picture I uploaded is merged from four (microscope) images, if that might make any difference?
With my limited knowledge in software it feels like it should be irrelevant, but just thought it is worth mentioning :)

User avatar
LePaul
Reactions:
Posts: 3138
Joined: February 7th, 2016, 10:26 pm
Location: Bangor, Maine USA
3D Printer(s): Ultimaker 2+, FT-5, CR-10, CR-10S, Tevo Tornado
Contact:

Re: How to Attach Photos

Post by LePaul » March 1st, 2016, 7:54 pm

I'm curious how it works on the phpBB support forum and not here. It's not a huge deal to me. Actually lowering the value to 2 mb is probably wiser since 5 mb is large. But I wanted pdf and other files to fit ok

User avatar
Chip Luck
Reactions:
Posts: 191
Joined: February 11th, 2016, 9:12 am
Location: Central Florida
3D Printer(s): HICTOP Reprap Prusa I3
Contact:

Re: How to Attach Photos

Post by Chip Luck » March 1st, 2016, 7:59 pm

5mb these days... is not large. But if your running your own server, well that will add up for sure.

I purchase a Nikon D610 DSLR that also does HD video also have GoPro's, sUAS(drone), etc. I thought a couple of 2Tb drives would be fine for primary and backups - wrong!

User avatar
Meduza
Reactions:
Posts: 285
Joined: February 10th, 2016, 8:08 pm
Location: Stockholm, Sweden
3D Printer(s): UM2+, UM3 (F2, UM2EX+ UM3EX, etc at work)
Contact:

Re: How to Attach Photos

Post by Meduza » March 2nd, 2016, 5:22 am

2mb is nothing... I have almost stopped uploading photos to forums with limits of 5mb or pixel limits of 5000px or less, since that would require me to take photos from my mobile photos trough a resizing software.

My phone takes pictures of about ~5mb in size and ~5300px wide... So for me a 5mb limit disqualifies about 1/3rd of the pictures taken with my phone.

I would be ok with a server-side plugin resizing my large pictures to a smaller size tough if it is disk space you are worried about.

User avatar
Chip Luck
Reactions:
Posts: 191
Joined: February 11th, 2016, 9:12 am
Location: Central Florida
3D Printer(s): HICTOP Reprap Prusa I3
Contact:

Re: How to Attach Photos

Post by Chip Luck » March 2nd, 2016, 8:44 am

Paul, FYI :I tried uploading a re-sized 1024x768 photo that used to work. Now I am getting the same error as the original file prior to re-sizing.

Also, looks like some are starting to post in the HICTOP forum area, just wish I could post pictures. Is not running a forum fun?

Post Reply

Return to “Feedback, suggestions and more”

Who is online

Users browsing this forum: No registered users and 4 guests