Stream: implementers
Topic: Upload zip to Simplifier duplicates resources
Julie Dumons (Nov 28 2019 at 12:36):
Hi all, we need to update our project to simplifier using the https://api.simplifier.net/ProjectName/zip
endpoint.
When the zip contains only resources that already exist in the project : it works well (updating all resources based on the name).
But when the zip contains also new profiles (not previously uploaded in Simplifier), all the files contained in the folder are duplicated on the project Simplifier.
Do you know how to create only the new resources and update the existing based on url or name ?
cc Laureen Loison
Sebastiaan Raap (Nov 28 2019 at 13:52):
Hi Julie, Simplifier matches the resources based on the filename. Could you check if your duplicates have different filenames?
pasted image
Laureen Loison (Nov 28 2019 at 14:50):
Hi, generally the new name generate by Simplifier is '[filename]-duplicate2.json', [filename]-duplicate3.json', [filename]-duplicate4.json', ....
René Spronk (Nov 28 2019 at 16:03):
I think Sebastiaan is talking about the filenames in your own zip.. if you upload a zip, does it use the same filenames as when you uploaded the previous version of the zip ?
Julie Dumons (Nov 28 2019 at 16:47):
You're right, we had a different path inside the zip file (one with folder, and one without). Thanks, it's working now !
Sebastiaan Raap (Nov 29 2019 at 09:19):
That's what I meant :) good to hear it's working!
Last updated: Apr 12 2022 at 19:14 UTC