PHP Thumb » Help & Bugs » Help

Resize and save Temp Files

(4 posts)
  1. I have a file uploader running on a page
    (libasoles.com.ar/subida).

    Users just uploads pictures. And I thought I was saving smaller versions by PhpThumb, but i´m not.

    Is it possible to resize temporal files? Or should i save the picture first?

    Here´s some lines of my code:

    $temporal = $_FILES['Filedata']['tmp_name'];
    $thumb = PhpThumbFactory::create($temporal);

    $thumb->resize(480,300)->save($_FILES['Filedata']['name']);

    Posted 11 months ago #
  2. thinkle
    Member

    no, save it first (move_uploaded_file) then delete (unlink) it

    Posted 11 months ago #
  3. Finally I could. The code was good, but it wasn't being executed because of a bad conditional i wrote for mp3 some lines before.

    Posted 11 months ago #
  4. I´m not that sure anymore. It works in my local server, but it seems it doesn´t on internet.

    Posted 11 months ago #

RSS feed for this topic

Reply

You must log in to post.