chungchunwang / Budibase-File-Upload

Upload files in your Budibase app!
MIT License
22 stars 11 forks source link

Decode Serialized JSON Back to Binary Object After Upload #11

Closed chadgriff closed 10 months ago

chadgriff commented 1 year ago

I have a use case where when a user uploads a file using the Budibase-File-Upload plugin, I would like to send out an email with the same file attached to it. I am using an MS SQL database with a nvarchar(max) field configured to accept the JSON string. Is there a way to pull the string into some Javascript that can decode it back into a file? All of the files involved with this use case would be .pdf files.

chungchunwang commented 1 year ago

Hi, take a look at the source code for the corresponding File Repeater plugin. The string is decoded back into a file there.

Get Outlook for iOShttps://aka.ms/o0ukef


From: Chad Griffith @.> Sent: Monday, September 18, 2023 6:51:46 PM To: chungchunwang/Budibase-File-Upload @.> Cc: Subscribed @.***> Subject: [chungchunwang/Budibase-File-Upload] Decode Serialized JSON Back to Binary Object After Upload (Issue #11)

I have a use case where when a user uploads a file using the Budibase-File-Upload plugin, I would like to send out an email with the same file attached to it. I am using an MS SQL database with a nvarchar(max) field configured to accept the JSON string. Is there a way to pull the string into some Javascript that can decode it back into a file? All of the files involved with this use case would be .pdf files.

— Reply to this email directly, view it on GitHubhttps://github.com/chungchunwang/Budibase-File-Upload/issues/11, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOZ73DBWDJCXQDBRHZY34XLX3ARUFANCNFSM6AAAAAA44QTMBU. You are receiving this because you are subscribed to this thread.Message ID: @.***>

chungchunwang commented 1 year ago

The repo is here: https://github.com/chungchunwang/Budibase-File-Repeater