[GH-ISSUE #23] Delete image #21

Closed
opened 2026-02-25 23:40:25 +03:00 by kerem · 3 comments
Owner

Originally created by @soniram on GitHub (Jan 30, 2017).
Original GitHub issue: https://github.com/HaschekSolutions/pictshare/issues/23

Hi, and thanks for sharing pictshare !!
Upload is working perfectly but delete has some glitches...
I'm using a post call and although delete works, it returns 404 with this html message
Warning: unlink(/var/www/vhosts/xxx/xxx.com/upload/delete_temp.csv): No such file or directory in /var/www/vhosts/xxx/xxx.com/models/pictsharemodel.php on line 145.
I have the same behavior even if I send the delete url by hand.
Am I doing something wrong ?

Originally created by @soniram on GitHub (Jan 30, 2017). Original GitHub issue: https://github.com/HaschekSolutions/pictshare/issues/23 Hi, and thanks for sharing pictshare !! Upload is working perfectly but delete has some glitches... I'm using a post call and although delete works, it returns 404 with this html message Warning: unlink(/var/www/vhosts/xxx/xxx.com/upload/delete_temp.csv): No such file or directory in /var/www/vhosts/xxx/xxx.com/models/pictsharemodel.php on line 145. I have the same behavior even if I send the delete url by hand. Am I doing something wrong ?
kerem closed this issue 2026-02-25 23:40:25 +03:00
Author
Owner

@geek-at commented on GitHub (Jan 30, 2017):

thanks :)

The 404 is okay since the image can't be found after being deleted. Might add an error image in the future

<!-- gh-comment-id:276142801 --> @geek-at commented on GitHub (Jan 30, 2017): thanks :) The 404 is okay since the image can't be found after being deleted. Might add an error image in the future
Author
Owner

@soniram commented on GitHub (Jan 30, 2017):

Thanks for replying !
An end point like backend.php but for delete, that returns a json response might be more elegant and useful.... :-)

<!-- gh-comment-id:276166505 --> @soniram commented on GitHub (Jan 30, 2017): Thanks for replying ! An end point like backend.php but for delete, that returns a json response might be more elegant and useful.... :-)
Author
Owner

@geek-at commented on GitHub (Jan 30, 2017):

good idea!

<!-- gh-comment-id:276183632 --> @geek-at commented on GitHub (Jan 30, 2017): good idea!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/pictshare#21
No description provided.