noelpush / noelpush

Partagez vos screenshots via NoelShack.
https://www.noelpush.com/
MIT License
1 stars 0 forks source link

Prevent images from not being archived #37

Open dieulot opened 8 years ago

dieulot commented 8 years ago

Images should be put in %localappdata%\NoelPush\Sending before being sent, with a date as their file name, plus their extension, like this: 2016-04-29 11h10m52s.png. Same for PNGs in #36.

They should then be deleted once we’ve received a 204 HTTP code for the add_upload/add_png_version.

That way, if an archival request failed or if before that the upload to NoelShack failed, it’s still possible to get that image.

This is to do to wait before we do something more thorough for network problems (retrying uploads #12 etc.).