getimagesize cant get to the upload folder (2 posts)

  1. williewonka
    Posted 3 years ago #

    in my plugin i have a call to getimagesize with an image in the uploads folder as argument. when i put the link to the argument directly in my browser the image appears. however the function gives the following error:

    failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in

    anyone knows how i can fix this?

  2. Chris
    Posted 3 years ago #

    Are you sure the URL of the image (the argument) is complete, with http:// etc? Browsers will add missing parts to a certain extend while the getimagesize function does not.

    Another alternative and even better way would be to use the (full) image path instead of a URL.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.