REST API download file

Hello, as an m-files customer, we're developing a process to access objects using the Rest API. Accessing the objects and viewing their details has progressed successfully, but we're having some issues downloading the file. When I trigger the download link in the browser with curl, I get the error "The resource you're looking for has been removed, had its name changed, or is temporarily unavailable."

M-Files Server Server 25.3.14681.8

I saw the following hotfix published on the web, but does it concern our version?

Defect: Cannot open link in classic web
ID: 167415
Symptom: In the classic M-Files Web, when a user clicks a link to a document whose file name contains special characters, the operation fails with the error message: "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable". This is because the classic web client double-encodes escaped characters.
Solution: Fixed.

Parents Reply
  • Hello Taneli,
    As seen in this example, I get the same error when I try to download a file that does not have Turkish characters.

    Example Object File element 
    "Files": [
    {
    "Name": "TESTDGI",
    "EscapedName": "TESTDGI.docx",
    "Extension": "docx",
    "Size": 13369,
    "LastModified": "2025-10-23T10:31:51Z",
    "ChangeTimeUtc": "2025-10-23T10:31:51Z",
    "ChangeTime": "2025-10-23T10:31:51Z",
    "CreatedUtc": "2025-10-23T10:35:04Z",
    "CreatedDisplayValue": "23.10.2025 10:35",
    "LastModifiedDisplayValue": "23.10.2025 10:31",
    "FileGUID": "{886086E8-AE1F-4B66-B04D-EE2ADDBE21A5}",
    "ID": 4779,
    "Version": 2,
    "FileVersionType": 3
    }
    ],

Children
No Data