-
Notifications
You must be signed in to change notification settings - Fork 560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FileManager when the folder Path is set and ShowFolder = False #3057
Comments
…lder is set by path
I have also discovered that this change which was made in #3049 is preventing from uploading modules and themes the error is shown below
Pull request #3058 fixes this issue as well |
I also am having a problem uploading files |
@vnetonline the Folder property on the FileManager was only ever intended to be used for 1 specific use case - uploading to the /Packages folder which is a "system" folder that does not have an entry in the Folder table in the database. If you are trying to set a specific default folder in the FileManager you should be using the FolderId property. If you look through the Oqtane framework source code you will see many examples of the usage. |
@sbwalker Appreciate your answer and I understand that the folder property was intended for only the packages folder but by this change it would allow us to set the folder in cases like when we want to just upload images for files which are publicly able. I could change my code in my module HeroSlider which needs to upload Hero images to publicly browsable folder That being said I could look for a Public folder but just like Packages it would be good to set the Public folder via the folder property |
@vnetonline the original post made it sound like it was an issue caused by a recent change in a prior version - however you are now clarifying that this is actually an enhancement. I will review the PR with this new context in mind. |
…a Folder is set by path
[ENHANCE] - #3057 FileManager when ShowFolders = False however a Folder is set by path
In a recent change to FileManager #3049 logic was added to show folders, however, when the Folder is set with a path like
Public
and ShowFolder = False results in an error<FileManager FileId="@_slideFileId" Filter="@Constants.ImageFiles" ShowFolders="false" ShowFiles="true" UploadMultiple="false" Folder=@_publicFolder @ref="fileManager" OnSelect="PopulateFileName" />
In this case, the FolderId should be set first based on the Path
The text was updated successfully, but these errors were encountered: