do not show the sidebar upload widget if defaultMediaUploadPath is unset.
See original GitHub issuedefaultMediaUploadPath
is a customizable setting that tells coisas the directory path into which it will place media files uploaded through the sidebar drag-and-drop upload widget.
As a feature for users who do not want that upload widget there (because they do not want to have a “media” folder, for example) we should not show that UploadFile
component when defaultMediaUploadPath
is set to false
or null
.
This can be done by a simple check of window.coisas.defaultMediaUploadPath
before rendering the UploadFile
component on the sidebar. If it is falsy (except for empty strings, which should be valid) then do not render it.
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
How to Change the Default Media Upload Location in ...
First, make sure you backup your existing upload directory before changing the default media upload location in WordPress. You can leave your old...
Read more >Upload local files using Google Colab - Stack Overflow
Upload widget is only available when the cell has been executed in the current browser session. Please rerun this cell to enable. I...
Read more >File_uploader widget is problematic #897 - streamlit ... - GitHub
The file uploader widget is not cleared when you clear the cache and there is no way to clear the file uploader widget...
Read more >Images - Punchmark Knowledge Base
Once you have inserted a widget containing an image element, you will see a grey image placeholder. Select the placeholder by clicking on...
Read more >Wordpress File Upload - Iptanus
It enables uploads of files from a page, post or sidebar (as a widget). It captures video/screenshots from the webcam and uploads it....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s still up for grabs, @noblepaper. Please let me know if you have any trouble.
Hey did @cmendonis get this working for you? Happy to pick it up if it’s still up for grabs.