mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-09 14:03:33 +09:00
Here splitted asset upload into 2 phases 1. initial upload creates asset in db with uploading state and generates unique name (POST /rest/assets endpoint) 2. use unique name to upload file, extract meta and mark asset as uploaded (POST /rest/assets/$name endpoint) This give us more straightforward data flow without creating temporary asssets with fake id which are changed later. And also unlock splitting files into separate table to allow securely copy paste assets between projects (still wip). Fixed persistent fetcher to support sequential submits.