codedamn

Upload Image in React Playground

Asked by balaji choda about a month ago

0

Im unable to upload an image inReact PLayground .Can anyone please help ?

1 Answer

    0

    Hey Balaji, looks like a few binary files aren't being support direct upload with the new VS Code Infrastructure on the playgrounds. The currently alternative is to download the image directly to the playground instance without making use of the UI.

    You can use the curl -O command.

    You can try this on the playground for example.

    curl -O https://raw.githubusercontent.com/ImageGlass/sample-images/master/Samples/PNG/gamma_error/error%20file.png
    

    If you're looking to upload an image that is available locally on your computer, you can upload it to google drive, GitHub or any other resource before downloading it to codedamn playground for the moment.

    We are still working on a potential fix for the image upload via Drag and Drop

    @codedamn

    Codedamn

    @codedamn

Your answer