Giter Site home page Giter Site logo

image-uploader's People

Contributors

adiitya avatar dhavalkapil avatar iammrinal0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

image-uploader's Issues

Creates a gibberish file.

I am running PHP 7 (might be relevant) and have been trying to use your image-uploader.

I follow your directions completely, I mean it's all very simple to use. It seems to work perfectly fine... until you go look at the file uploaded. Which ends up being a file with no extension name and full of gibberish. Renaming to a proper file format or opening it in an image program just throws an error that the file might be corrupted.

I have no idea what I am doing because the steps are super simple, I even test uploading invalid images or file types and it throws errors perfectly. It's all working... minus the resulting file being correct!

Just getting a bool return

I've tried using this with error reporting turned on.

I get no errors.

When submit.php runs, all I get is bool(true).

Is there supposed to be something more?

Can't delete uploaded images

Uploading and serving images is simple, but there's no way to delete them afterwards!

A very naive implementation would be:

function delete($identifier) {
    if ($this->exists($identifier)) {
        unlink($this->getImagePath($identifier));
    }
}

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.