Temporary Shared Files Across Team Create (PluginSecurity)

As a Roblox developer, it is currently too hard to share temporary images, audio and other assets with other collaborators without uploading them to Roblox.

Similar to rbxtemp (StudioService:PromptImportFileAsync()), there should be a way for users to share assets with Team Create. Something like rbxshared or rbxsharedtemp and an extra parameter to StudioService:PromptImportFileAsync() of type boolean to indicate whether they are shared would really help.
StudioService:PromptImportFileAsync(fileFilterType, sharedWithCollaborators: boolean) - Example 1, new parameter
File:GetTemporarySharedId() - Example 2, New function for File
StudioService:PromptImportSharedFileAsync(fileFilterType) - Example 3, new function for StudioService

Code example
local StudioService = game:GetService("StudioService")

StudioService:PromptImportFileAsync(nil, true)

StudioService:PromptImportFileAsync(fileTypeFilter: {any}?, sharedWithCollaborators: boolean?)
-- sharedWithCollaborators defaults to false

Use cases

I am currently working on a chat plugin. Everything is going great, however, sharing images is simply too hard at the moment. You would have to upload them to Roblox, get its ID and then paste it. This would allow for faster asset sharing without having to upload it to Roblox.

This is not as easy as you think. rbxtemp points to usually saved to internal cache, while rbxasset points to the “content” folder inside the respective executable’s folder. Your idea would require either the server which uploads your temp files (because it needs to) to delete them after a set amount of time, which might not be feasable. Or, somehow, Studio prompts the deletion of those rbxshared assets, which is also not feasable because, say, Roblox Studio crashes and it cannot do that before it is closed and the session is cleared.
While helpful, I very much doubt this would get added.

3 Likes