and i need use it to upload a public_key.pem fil...
# suitescript
a
and i need use it to upload a public_key.pem file but it is showing this error: Error: {"type":"error.SuiteScriptError","name":"SSS_INVALID_TYPE_ARG","message":"You have entered an invalid type argument: MISCBINARY","id":"","stack":["Error\n at saveFile (/SuiteScripts/0004 - Card/SD_SL_UploadPemFile.js8728)\n at Object.principalFunction (/SuiteScripts/0004 - Card /SD_SL_UploadPemFile.js3634)"],"cause":{"type":"internal error","code":"SSS_INVALID_TYPE_ARG","details":"You have entered an invalid type argument: MISCBINARY","userEvent":null,"stackTrace":["Error\n at saveFile (/SuiteScripts/0004 - Card /SD_SL_UploadPemFile.js8728)\n at Object.principalFunction (/SuiteScripts/0004 - Card /SD_SL_UploadPemFile.js3634)"],"notifyOff":false},"notifyOff":false,"userFacing":true}
c
a
what can i do ? if i need the user upload the file and use this content ? thanks
c
I think I came across similar issue in the past but I do not remember if I was able to solve it. I would try these ideas: • Save as filetype plaintext, but save with extension .pem for filename • Save as filetype plaintext and save with extension .txt. Then load it again and change the name to have extension .pem, save. Again I don't remember if either of these things worked for me. How are the users uploading the file? This a suitelet form? If you can get the users to interface with a native record or custom record in NetSuite, they should be able to save it with a file type field, and you can move it to different folder afterwards.