question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

do not show the sidebar upload widget if defaultMediaUploadPath is unset.

See original GitHub issue

defaultMediaUploadPath 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:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
fiatjafcommented, Oct 26, 2017

It’s still up for grabs, @noblepaper. Please let me know if you have any trouble.

0reactions
noblepapercommented, Oct 26, 2017

Hey did @cmendonis get this working for you? Happy to pick it up if it’s still up for grabs.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found