Image Uploader Improvements

Problem with the site? Got a suggestion? Got feedback? Post here and the staff will discuss it with you.
Post Reply
Andy
User avatar
Administrator
Posts: 12621
Joined: Fri Aug 18, 2006 11:47 am
Location: United Kingdom
Contact:

Image Uploader Improvements

Post by Andy »

Hello all,

I have now included a remote URL upload feature on the image uploader (finally!). Since its new, don't hesitate to tell me of any problems you get.

One known error occurs if you simply hit upload without entering a file. I'm trying to "catch" that error and stop it from occurring.

Gnome
User avatar
Staff
Posts: 2671
Joined: Thu Nov 30, 2006 6:10 pm
Location: Land of The Tea.
Contact:

Post by Gnome »

Now that is COOL!!!!
Well done

Daniel
User avatar
Staff
Posts: 2607
Joined: Wed Apr 11, 2007 2:11 pm
Location: Germany, Earth
Contact:

Post by Daniel »

At last! very nice!

RichardG867
FTP Access
Posts: 596
Joined: Tue Oct 23, 2007 11:21 pm

Post by RichardG867 »

I think try and catch won't work on PHP 4; my favorite editor won't highlight it and works fine on PHP 5.

Also, you can use or:

Code: Select all

foo("bar") or die("Error executing foo");

Andy
User avatar
Administrator
Posts: 12621
Joined: Fri Aug 18, 2006 11:47 am
Location: United Kingdom
Contact:

Post by Andy »

RichardGatinho wrote:I think try and catch won't work on PHP 4; my favorite editor won't highlight it and works fine on PHP 5.

Also, you can use or:

Code: Select all

foo("bar") or die("Error executing foo");
Not sure what this has to do with this topic...

RichardG867
FTP Access
Posts: 596
Joined: Tue Oct 23, 2007 11:21 pm

Post by RichardG867 »

Tried with an empty URL and thrown a custom error. Sorry. (Edited 26/Nov/2009)

Post Reply