문제

I use html5 file api so the flow is more direct and better UX in my opinion. When the user select their image, there will be a preview and the upload is running in backend in the same time. What I want to add is a cancel button.

Just curious is there any shortcut to undo or revert the last action (upload)?? or I need to manually write the delete logic?

올바른 솔루션이 없습니다

다른 팁

You would simply just delete the uploaded file using unlink() and remove from database if necessary.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top