CMS Development

xyboox
Participant

POST /cms/v3/source-code/extract/{path} - does nothing?

Trying to use the api to upload a zipped directory containing webp ( mostly ) files so I can later use the extract endpoint. While the upload works just fine, the extraction seems to do nothing. Well... at least not while the archive content is a directory. It seems to be working just fine when I compress a single file, upload it and then decompress. But not for a compressed directory. Is this by design?

 

Thanks!

0 Upvotes
2 Replies 2
Jaycee_Lewis
Community Manager
Community Manager

POST /cms/v3/source-code/extract/{path} - does nothing?

Hi, @xyboox 👋 Thanks for reaching out! Hey, @Jake_Lett @albertsg, do you have any experience with importing design assets in this manner?

 

Thank you for taking a look! — Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes
xyboox
Participant

POST /cms/v3/source-code/extract/{path} - does nothing?

After some more attempts I learned that although the api call response is empty ( response code 204 ), the expanding takes places on 2 conditions: a directory with the same name as the zip file does NOT exist yet and the archive does NOT contain any webp files. Second condition defeats the whole purpose I used the api call for. At this point I'm stuck ( I have ~3500 webp wiles I need to upload for the website ). 

0 Upvotes