Jonathan5122827 / ImageProc

Image Processor application
0 stars 1 forks source link

When invalid file is uploaded, file is not loaded but is still uploaded #10

Closed collin-lyon closed 2 years ago

collin-lyon commented 2 years ago

When invalid file is uploaded, it is not loaded to canvas, but it is uploaded. After it is uploaded, and we realize it is not valid, the file upload should be emptied. This can be likely be done by setting it to null.

collin-lyon commented 2 years ago

This is a functional bug, as it is related to Open Image functionality, a FR.

kalvingarcia commented 2 years ago

The issue reported about file upload. The file will always be uploaded there is no way to confirm the file to be an image without uploading it. All we can do is clear the value and not load the image. The function is already not loading without a match, so I added the clear, hopefully.