You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a multi-tenant app that separates files for each tenant by using a Illuminate\Contracts\Filesystem object, dynamically built at runtime (in my case as a scoped disk).
Unfortunately, this can't be passed into the FileUpload form component in any way, as the only accepted types are strings, defining disks in config/filesystems.php.
Could FileUpload (or BaseFileUpload) be amended to accept dynamic disks?
I think it would just mean allowing BaseFileUpload to store a string diskName or Filesystem disk; and then amending getDisk() to return the disk if it exists, otherwise do what it does already?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a multi-tenant app that separates files for each tenant by using a
Illuminate\Contracts\Filesystem
object, dynamically built at runtime (in my case as a scoped disk).Unfortunately, this can't be passed into the
FileUpload
form component in any way, as the only accepted types are strings, defining disks inconfig/filesystems.php
.Could FileUpload (or BaseFileUpload) be amended to accept dynamic disks?
I think it would just mean allowing BaseFileUpload to store a string diskName or Filesystem disk; and then amending getDisk() to return the disk if it exists, otherwise do what it does already?
Beta Was this translation helpful? Give feedback.
All reactions