Advertisement:

Author Topic: Image upload  (Read 2075 times)

light_bulb

  • Newbie
  • *
  • Posts: 31
Image upload
« on: January 21, 2013, 07:12:58 am »
Hi all,

Just wondering if there is a better image upload mechanism available.
If anyone tries to upload an image on my classifieds site that is above the 2mb limit, the ad gets posted without the image. It would be good if there was some intelligence coded into the image upload tool that can throw a real-time warning if the user tries to upload an image that is too large.

Cheers

marcelo63

  • Newbie
  • *
  • Posts: 47
Re: Image upload
« Reply #1 on: January 21, 2013, 08:02:33 am »
ADNIN (Back end) Control Panel ---> Settings ----> Media ----> Under Restrictions you can change the value up to 8192kb

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: Image upload
« Reply #2 on: January 21, 2013, 11:55:44 am »
Hi light_bulb,

Unfortunately Osclass can not do that right now (but in the next version will work on that!).
The problem is that, to check the size of the file, the file has to be on the server, so it has to be uploaded first.

Other solution is to check the size of the file ON the client size (browser), to do that you will need adobe flash or a HTML5 capable browser. Flash is widely available, but it's being used less and less each day, also, there're some configuration (flash version + operating system)  where it doesn't work fine. HTML5 penetration is slow, and again some browser may support HTML5, but not all the features, so it's not an easy task.

On mobile devices (phones, tablets) it's even more difficult. Most of them don't have flash support, and HTML5 support is very very limited.

So the solution is to use HTML5, if not available Flash and if not available normal upload. Which is a lot of work.

We've crated an issue sometime ago, you could follow the development here : https://github.com/osclass/Osclass/issues/60

Hope you understand

tomshaft

  • Guest
Re: Image upload
« Reply #3 on: January 21, 2013, 12:01:31 pm »
 
Though temporary, a quick, simple solution would be to enter some bold, noticeable text into the necessary upload file warning "DO NOT upload images larger than the size limit.
 
 Tom

light_bulb

  • Newbie
  • *
  • Posts: 31
Re: Image upload
« Reply #4 on: January 21, 2013, 11:45:41 pm »
Hi all,

Thanks for your replies.

Is there some handler available that can throw an error if the image being uploaded surpasses the file size limit?
I am hoping to avoid the situation where a user gets their listing posted without any images.

Cheers

garciademarina

  • Administrator
  • Hero Member
  • *****
  • Posts: 974
Re: Image upload
« Reply #5 on: August 30, 2013, 12:19:43 pm »