Good evening.
I’m trying to send attachments to freshservice, but freshservice accepts uploads only from local files as stated in the API Documentation.
To do that I have to download the file and then send it.
I’m using fs-extra instead if the regular fs, else I have the same error discussed in this topic.
The app works without problems locally using fdk run, but things change after deployment: looks like the app won’t let me access to the path that I was ussing to store the file
I tryed using different paths, but it’s not working either. Is there a folder where I can have access or a way to give me permissions to access it? Or even another way to attach files to a freshservice ticket or reply?
The built application gets deployed as an Iframe within the Freshworks Platform context window based on placeholders specified and does not necessarily have access to the file system. Hence you might run into this issue. When using an attachment
As part of the application code itself such as assets, logos, etc you can use a relative path.
As part of the JSON body, then use a public link (like S3 CDN or some other)
Point noted, thanks for highlighting the same. Much appreciated. We lean on community members like you to highlight such issues to improve user experience. Your inputs are valued and necessary actions are underway.
We further recommend using Request Method as much as possible to that of Axios usage for secure implementation of the same.