Rank 3: Container
I'm working on a chat application. and my whole "send message" functionality is handled in a server function and I'm just calling that function from my app with the chat token and the message content. till now my app only had the feature to send text messages. but now I'm thinking of implementing a "send attachment" feature as well. which means, I need to send those files to my server functions to work with them.
u might suggest uploading the files from my app and then only sending the file links to the server function. but in that case, I can't set the Read Permission of that file for the other user (message recipient). cause we cannot set permissions that we don't have, and that's the same reason why I had to move my whole "send message" functionality to a server function. to set Read Permissions for both users (message sender and recipient)
So is there any way I can send files to my server function? or any workaround u can think of for my scenario?