Skip to main content

I’m getting a 500 error when uploading a file where the filename contains characters outside of the ASCII range 32-127


The API call works fine for most filenames, but occasionally I get a filename with an accented character, and they fail to upload.


I could write a filter to remove the accented characters, but was hoping instead there was a solution within Monday so filenames remain accurate.


I can manually upload files with accented characters, so the limitation must be the API


I’m using api.monday.com/v2/file with a POST, setting the Authorization header to my token, and setting “content-type” to “multipart/form-data”


Thanks in advance!



  • Steve

@stevej401 do you have a code sample example? Maybe it’s failing on encoding of the characters?


Perhaps you could try snooping a working file upload in the browser console ??


I’m using Power Automate to call the API - the code is fairly simple:


When this runs, the output code looks as below

The filename, as you can see, has an accented character. If I remove this character, the call works fine.

(I’ve removed the string that would have been the actual file contents)


{

“$content-type”: “multipart/form-data”,

“$multipart”:

{

“headers”: {

“Content-Disposition”: “form-data; name="query"”

},

“body”: “mutation add_file($file: File!) {add_file_to_column (item_id: 7665938811, column_id:"files" file: $file) {id}}”

},

{

“headers”: {

“Content-Disposition”: “form-data; name="map"”

},

“body”: “{"image":"variables.file"}”

},

{

“headers”: {

“Content-Disposition”: “form-data; name="image"; filename="Nr GLN marketów OBI.xlsx"”

},

“body”: {

“$content-type”: “application/vnd.openxmlformats-officedocument.spreadsheetml.sheet”,

“$content”: “file_contents_were_here”

}

}

]

}


Hello there @stevej401,


I tried reproducing this issue using Postman and it worked well. I think this might be related to Power Automate. Would you be able to please fill this form adding as much information as possible to it so that our team can take a look into it?


Reply