Imgur

Upload more than one image - Imgur

Upload more than one image

by Dreamfalcon » Tue Feb 13, 2018 11:50 pm

Hi,
If I try to upload more than one image at the same time the API returns "[]".
Is this normal?
Dreamfalcon
Registered User
Posts: 9
Joined: Thu Mar 12, 2015 3:00 pm
Contact:

Re: Upload more than one image

by AlfredoRamos » Wed Feb 14, 2018 6:36 pm

Which formats are you trying to upload, how many, and how big are those images?

The API does not allow to upload multiple images at once, what I'm doing in the extension is that each image is uploaded individually, so that should not be a problem.

The response message is not helpful, I'll do some test.
Some of my phpBB extensions:
:chart_with_upwards_trend: SEO Metadata | Image Markdown | :shield: hCaptcha
:trophy: Check out all my validated extensions :trophy:

:penguin: Arch Linux user | Linux Boards :penguin:
User avatar
AlfredoRamos
Recognised Extension Developer
Posts: 1302
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo
Contact:

Re: Upload more than one image

by Dreamfalcon » Wed Feb 14, 2018 7:53 pm

This two images at the same time for example:

https://i.imgur.com/nCDW9Lx.jpg
https://i.imgur.com/D5vDVJ5.jpg

I'm using phpbb 3.2.2 and chrome.
Dreamfalcon
Registered User
Posts: 9
Joined: Thu Mar 12, 2015 3:00 pm
Contact:

Re: Upload more than one image

by AlfredoRamos » Wed Feb 14, 2018 11:21 pm

Dreamfalcon wrote:This two images at the same time for example:

https://i.imgur.com/nCDW9Lx.jpg
https://i.imgur.com/D5vDVJ5.jpg

I'm using phpbb 3.2.2 and chrome.
Can you share the images using a file storage service? I just uploaded those images though the extensin with no problem.

Most of the image hosting services compress high resolution images to save disk space and bandwidth, including Imgur, the results won't reliable using those images to test.

It seems to be a timeout issue, I need to dig deeper into it.
Some of my phpBB extensions:
:chart_with_upwards_trend: SEO Metadata | Image Markdown | :shield: hCaptcha
:trophy: Check out all my validated extensions :trophy:

:penguin: Arch Linux user | Linux Boards :penguin:
User avatar
AlfredoRamos
Recognised Extension Developer
Posts: 1302
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo
Contact:

Re: Upload more than one image

by Dreamfalcon » Wed Feb 14, 2018 11:35 pm

Dreamfalcon
Registered User
Posts: 9
Joined: Thu Mar 12, 2015 3:00 pm
Contact:

Re: Upload more than one image

by Dreamfalcon » Wed Feb 14, 2018 11:40 pm

Image

Image

Image
Dreamfalcon
Registered User
Posts: 9
Joined: Thu Mar 12, 2015 3:00 pm
Contact:

Re: Upload more than one image

by AlfredoRamos » Sun Feb 18, 2018 5:09 pm

Dreamfalcon wrote:
Hi,

Sorry for the late reply, I think I found the issue, debugging the extension I found that it returns an error code 1 (UPLOAD_ERR_INI_SIZE) which means that the issue is because the image exceeds the upload_max_filesize directive.

Unfortunately I can't fix that from my extension because you need to change that in the server, however I'll add an error message that would help to know what's wrong.

In modern hosting services, you can change some values of PHP, you could increase the value of upload_max_filesize. It is needed because the images are uploaded temporarily in the server and then are uploaded to Imgur.
Some of my phpBB extensions:
:chart_with_upwards_trend: SEO Metadata | Image Markdown | :shield: hCaptcha
:trophy: Check out all my validated extensions :trophy:

:penguin: Arch Linux user | Linux Boards :penguin:
User avatar
AlfredoRamos
Recognised Extension Developer
Posts: 1302
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo
Contact:

Re: Upload more than one image

by Dreamfalcon » Sun Feb 18, 2018 6:42 pm

The problem was on the post_max_size.
Thanks.
Dreamfalcon
Registered User
Posts: 9
Joined: Thu Mar 12, 2015 3:00 pm
Contact:

Re: Upload more than one image

by Dreamfalcon » Sun Feb 18, 2018 6:57 pm

If the images are uploaded to the server, is possible to add a option to resize the images?
And a progress bar would be great also :)
Dreamfalcon
Registered User
Posts: 9
Joined: Thu Mar 12, 2015 3:00 pm
Contact:

Re: Upload more than one image

by AlfredoRamos » Mon Feb 19, 2018 12:05 am

Dreamfalcon wrote:If the images are uploaded to the server, is possible to add a option to resize the images?
And a progress bar would be great also :)
I've been thinking about replacing the load indicator with a progress bar however I haven't had enough time to implement it. I'll look into it.

About the image resizing, the extension wasn't made with image manipulation of any kind in mind, so I don't think I'll add that in a near feature, if at all.
Some of my phpBB extensions:
:chart_with_upwards_trend: SEO Metadata | Image Markdown | :shield: hCaptcha
:trophy: Check out all my validated extensions :trophy:

:penguin: Arch Linux user | Linux Boards :penguin:
User avatar
AlfredoRamos
Recognised Extension Developer
Posts: 1302
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo
Contact:

Re: Upload more than one image

by AlfredoRamos » Sun Mar 11, 2018 10:39 pm

There's a development version (do not use it in a live forum) if anyone is interested in testing what might be included in the next version.

v1.2.0-dev (2018-05-01): https://www.dropbox.com/s/o64s0qtvvam5c ... 1.zip?dl=1

It includes a experimental HTML5 progress bar (at the bottom) and improvements to show PHP ($_FILES) errors.

The changes between the latest stable release (v1.1.1) and this new development version are listed in the following link:

https://github.com/AlfredoRamos/phpbb-e ... 1...master
Last edited by AlfredoRamos on Tue May 01, 2018 8:49 pm
Some of my phpBB extensions:
:chart_with_upwards_trend: SEO Metadata | Image Markdown | :shield: hCaptcha
:trophy: Check out all my validated extensions :trophy:

:penguin: Arch Linux user | Linux Boards :penguin:
User avatar
AlfredoRamos
Recognised Extension Developer
Posts: 1302
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo
Contact:

Re: Upload more than one image

by Dreamfalcon » Sun Apr 29, 2018 10:45 am

Sorry for the delay.
Just tried but no propress bar and adds the same image two times.
Dreamfalcon
Registered User
Posts: 9
Joined: Thu Mar 12, 2015 3:00 pm
Contact:

Re: Upload more than one image

by AlfredoRamos » Sun Apr 29, 2018 5:37 pm

Both issues have been fixed in the repository, when I have free time available I will update the link.
Some of my phpBB extensions:
:chart_with_upwards_trend: SEO Metadata | Image Markdown | :shield: hCaptcha
:trophy: Check out all my validated extensions :trophy:

:penguin: Arch Linux user | Linux Boards :penguin:
User avatar
AlfredoRamos
Recognised Extension Developer
Posts: 1302
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo
Contact:

Re: Upload more than one image

by AlfredoRamos » Tue May 01, 2018 8:50 pm

Link updated:

v1.2.0-dev (2018-05-01): https://www.dropbox.com/s/o64s0qtvvam5c ... 1.zip?dl=1
Some of my phpBB extensions:
:chart_with_upwards_trend: SEO Metadata | Image Markdown | :shield: hCaptcha
:trophy: Check out all my validated extensions :trophy:

:penguin: Arch Linux user | Linux Boards :penguin:
User avatar
AlfredoRamos
Recognised Extension Developer
Posts: 1302
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo
Contact:

Re: Upload more than one image

by Dreamfalcon » Wed May 02, 2018 10:25 am

The bottom loader goes almost unnoticed.
Maybe something bigger with a percentage indicator.
Dreamfalcon
Registered User
Posts: 9
Joined: Thu Mar 12, 2015 3:00 pm
Contact: