This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

add file to an exist object (python)

I'm trying to create a new object with a file and later load a second file to the created object, for that I do

Checkout the object
load the file to the temporary
attach the temporary to the object
checkin the object

But at the moment of seeing the result the file is created as unnamed


Console results 

***********************************

{"UploadID":11,"Size":182833,"FileInformationType":0}
***********************************

{"Title":"ZONA - 25 - 11/18/2022 - 8 - 14","EscapedTitleWithID":"ZONA - 25 - 11{2}18{2}2022 - 8 - 14 (ID 97)","DisplayID":"97","ObjVsion":17,"VersionType":4,"ID":97,"Type":0},"Class":5,"CheckedOutAtUtc":"2022-11-28T19:01:27Z","CheckedOutAt":"2022-11-28T19:01:27Z",fiedUtc":"2022-11-28T19:01:27Z","LastModified":"2022-11-28T19:01:27Z","ObjectCheckedOut":true,"ObjectCheckedOutToThisUser":true,"Che":2,"CheckedOutToUserName":"------------","CheckedOutFrom":"M-FILES WWW","SingleFile":false,"HasRelationshipsFrom":false,"HasRelatio:false,"HasRelationshipsFromThis":false,"HasRelationshipsToThis":false,"HasAssignments":false,"Deleted":false,"IsStub":false,"ThisVestToThisUser":true,"CreatedUtc":"2022-11-23T17:44:39Z","Created":"2022-11-23T17:44:39Z","Files":[{"Name":"12","EscapedName":"12.pdf"on":"pdf","Size":182057,"LastModified":"2022-11-24T21:37:13Z","ChangeTimeUtc":"2022-11-24T21:37:13Z","ChangeTime":"2022-11-24T21:37:atedUtc":"2022-11-24T21:37:13Z","CreatedDisplayValue":"11/24/2022 9:37 PM","LastModifiedDisplayValue":"11/24/2022 9:37 PM","FileGUIDF44-9F44-4E39-A759-BA98E7100072}","ID":55,"Version":2,"FileVersionType":3},{"Name":"Unnamed","EscapedName":"Unnamed","Extension":"",:57:40Z","CreatedDisplayValue":"11/28/2022 6:57 PM","LastModifiedDisplayValue":"11/28/2022 6:57 PM","FileGUID":"{B1EA7917-6A46-4E18-21F5916E}","ID":66,"Version":2,"FileVersionType":3}],"VisibleAfterOperation":true,"PathInIDView":"0\\0-999\\97\\C\\20221128190127","iedDisplayValue":"11/28/2022 7:01 PM","CheckedOutAtDisplayValue":"11/28/2022 7:01 PM","CreatedDisplayValue":"11/23/2022 5:44 PM","ObonFlags":0,"Score":0,"LastAccessedByMe":"2022-11-28T19:01:27Z","AccessedByMeUtc":"2022-11-28T19:01:27Z","AccessedByMe":"2022-11-28T1,"ObjectGUID":"{9EBEB168-2519-4AF4-9E9B-1F82F3300DCE}","ObjectCapabilityFlags":-1,"ObjectFlags":68,"propertyID":0,"LatestCheckedInVe,"DuplicateFilesUploadFailed":["Unnamed."],"AddedFiles":[],"BaseProperties":[]}

I don't know if I'm missing some point of the endpoint, to bind the file I use "">m-files.com/.../files".

Has anyone tried this type of upload?