Topic: Redirect to image URL after upload

I'm not well versed in PHP or web development. I'm primarily a web designer. Anyway, how do I redirect users to the image URL after they upload an image? So that they can just copy the URL at the top of the page after they upload something. Currently it just stays as http://mydomain.com and I want it to say http://mydomain.com/?v=myimage.png instead.

Thanks in advance!

Last edited by karma23 (2010-07-20 18:53:40)

Thumbs up

Re: Redirect to image URL after upload

Open engine.php and at the very bottom add this:

if ($up) { header("Location: $URLimg"); }

Regards.

rodolfoberrios.com | PLEASE use Tech Support forums to ask for support!

Re: Redirect to image URL after upload

Rodolfo wrote:

Open engine.php and at the very bottom add this:

if ($up) { header("Location: $URLimg"); }

Regards.

Hi,

I am looking for the same as the OP, I added the code you posted and it literally took me to the image, is it possible to take me to the view version?

http://mydomain.com/?v=myimage.png


Thanks! smile

Thumbs up