Upload more than one image - Imgur
Upload more than one image
If I try to upload more than one image at the same time the API returns "[]".
Is this normal?
-
- Registered User
- Posts: 9
- Joined: Thu Mar 12, 2015 3:00 pm
- Contact:
Re: Upload more than one image
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.
SEO Metadata | Markdown | hCaptcha
Check out all my validated extensions
Arch Linux user | Linux Boards
- 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
https://i.imgur.com/nCDW9Lx.jpg
https://i.imgur.com/D5vDVJ5.jpg
I'm using phpbb 3.2.2 and chrome.
-
- Registered User
- Posts: 9
- Joined: Thu Mar 12, 2015 3:00 pm
- Contact:
Re: Upload more than one image
Can you share the images using a file storage service? I just uploaded those images though the extensin with no problem.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.
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.
SEO Metadata | Markdown | hCaptcha
Check out all my validated extensions
Arch Linux user | Linux Boards
- AlfredoRamos
- Recognised Extension Developer
- Posts: 1302
- Joined: Wed Dec 25, 2013 9:06 pm
- Location: /dev/null
- Name: Alfredo
- Contact:
-
- Registered User
- Posts: 9
- Joined: Thu Mar 12, 2015 3:00 pm
- Contact:
-
- Registered User
- Posts: 9
- Joined: Thu Mar 12, 2015 3:00 pm
- Contact:
Re: Upload more than one image
Hi,Dreamfalcon wrote:
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.SEO Metadata | Markdown | hCaptcha
Check out all my validated extensions
Arch Linux user | Linux Boards
- 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
Thanks.
-
- Registered User
- Posts: 9
- Joined: Thu Mar 12, 2015 3:00 pm
- Contact:
Re: Upload more than one image
And a progress bar would be great also
-
- Registered User
- Posts: 9
- Joined: Thu Mar 12, 2015 3:00 pm
- Contact:
Re: Upload more than one image
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.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
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.
SEO Metadata | Markdown | hCaptcha
Check out all my validated extensions
Arch Linux user | Linux Boards
- 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
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
SEO Metadata | Markdown | hCaptcha
Check out all my validated extensions
Arch Linux user | Linux Boards
- 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
Just tried but no propress bar and adds the same image two times.
-
- Registered User
- Posts: 9
- Joined: Thu Mar 12, 2015 3:00 pm
- Contact:
Re: Upload more than one image
SEO Metadata | Markdown | hCaptcha
Check out all my validated extensions
Arch Linux user | Linux Boards
- 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
SEO Metadata | Markdown | hCaptcha
Check out all my validated extensions
Arch Linux user | Linux Boards
- 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
Maybe something bigger with a percentage indicator.
-
- Registered User
- Posts: 9
- Joined: Thu Mar 12, 2015 3:00 pm
- Contact: