Skip to content
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

Should have a Save As Yarn option that shows save location prompt #249

Closed
cjacobwade opened this issue Mar 2, 2021 · 3 comments
Closed

Comments

@cjacobwade
Copy link

My intended workflow for Yarn is to open files in my project in the web version of Yarn, make changes as needed then export back into the project. Currently the Save As Yarn menu option goes straight to the downloads folder without a prompt. Would love to get a location prompt so I can save over the existing asset in my project.

@cjacobwade cjacobwade changed the title Should have a Save As Yarn option that shows a location prompt Should have a Save As Yarn option that shows save location prompt Mar 2, 2021
@FaultyFunctions
Copy link
Contributor

As far as I can tell this is either currently impossible, or currently being drafted and worked on as far as what is allowed in browsers and what isn't (this doesn't have anything to do with YarnEditor). The reason for this is mostly for security. The browser determines where things are saved and for security reasons we can't access your file system.

However, there are some workarounds, albeit maybe not ideal for you:

  1. Change your browser settings to ask you where you want to save a file every time a file is downloaded. On Chromium based Edge this setting looks like this:
    image
    I would've suggested change where your browser downloads files to your working Yarn directory but this won't overwrite files and will make new files with numbers appended to them each time. So you need to have the browser ask you what to do with the files manually to overwrite them properly.

  2. Use the desktop version and open your files in that. Hitting Ctrl + S will automatically overwrite and save your file to whatever directory you opened your file from.

Sorry, from my research this seems to be a web security issue rather than a YarnEditor one.

@blurymind
Copy link
Owner

blurymind commented Jul 11, 2021

Once this is supported on mobile and more browsers, it might be worth looking into adding support for it
https://caniuse.com/native-filesystem-api
right now is not well supported and not a standard yet

@blurymind
Copy link
Owner

this is now implemented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants