Giter VIP home page Giter VIP logo

Comments (3)

Sybio avatar Sybio commented on September 25, 2024

Salut @TeksiFR, je vais répondre en anglais ;)

if this error is displayed at this line $giflayer = PHPImageWorkshop\ImageWorkshop::initFromPath($FILES['image[]']['tmp'][0]); :

" No such file found at "" thrown in (etc.) "

It seems that $FILES['image[]']['tmp'][0] is not the right path to your image, have you tried a var_dump to check the $_FILES array ?

var_dump($FILES['image[]']['tmp'][0]);
var_dump($FILES); // to display all uploaded files and retrieve the one you want
exit;

Sinon ton script est bon mais si tu comptes resize des GIF animés, attention c'est un peu plus compliqué (http://phpimageworkshop.com/tutorial/5/manage-animated-gif-with-imageworkshop.html) :)

Tiens moi au courant ^^

from imageworkshop.

TeksiFR avatar TeksiFR commented on September 25, 2024

Thanks for answering.
The var_dump display null / null ...

This is the first time I use the super globale $_FILES so I think I dont get how to make it work.

$_FILES['image']['tmp_name']);
What am i suppose to put instead of 'image' and 'tmp_name" ?


Here is my input for image in my form
input name="user-submitted-image[]" type="file" size="25" class="usp-input usp-clone"

The temporary path name use by Wamp is "tmp"

from imageworkshop.

jasny avatar jasny commented on September 25, 2024

This issue should be closed, since it doesn't appear to be a bug.

@TeksiFR Please read the file upload section in the PHP manual. And make sure you've added enctype="multipart/form-data" to your form.

from imageworkshop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.