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

How to save file to specific folder. #47

Open
DenisMrGnusa opened this issue Aug 10, 2022 · 17 comments
Open

How to save file to specific folder. #47

DenisMrGnusa opened this issue Aug 10, 2022 · 17 comments
Labels
enhancement New feature or request

Comments

@DenisMrGnusa
Copy link

In my case, i want to save a file to specific folder like Donwloads/. How can i do that?
Thank you,

@nitelow
Copy link

nitelow commented Oct 8, 2022

@DenisMrGnusa Which platform are you targeting?

@rshrc
Copy link

rshrc commented Nov 20, 2022

@DenisMrGnusa Which platform are you targeting?

If in Windows OS, how will you do it?

@rshrc
Copy link

rshrc commented Nov 23, 2022

@incrediblezayed hey can you please help, thank you

@incrediblezayed
Copy link
Owner

@incrediblezayed hey can you please help, thank you

Currently there is no way to do that, I'm working on it for a long time now, I had prioritized web for the sane, but I'll prioritize windows now since you need it, but please understand it will take time since I've got really busy with my job

@MAlazhariy
Copy link

MAlazhariy commented Feb 22, 2024

Any updates?

@incrediblezayed
Copy link
Owner

incrediblezayed commented Feb 22, 2024

The PR is actually merged, test the saveAs function @MAlazhariy @rshrc

@msmartin4470
Copy link

I was working with this a little today. The save as dialog opens as expected, but it does not look like the file actually saves to the location when you press save. I do not notice any error that appear in the debug console. Is there anything I need to configure before hand to make this work?

@incrediblezayed
Copy link
Owner

I was working with this a little today. The save as dialog opens as expected, but it does not look like the file actually saves to the location when you press save. I do not notice any error that appear in the debug console. Is there anything I need to configure before hand to make this work?

Wdym? What are you trying to do? SaveAs already works right?

@msmartin4470
Copy link

I was trying to use SaveAs and the dialogs work as expected but the file is never saved to the location I select.

@incrediblezayed
Copy link
Owner

I was trying to use SaveAs and the dialogs work as expected but the file is never saved to the location I select.

Oh weird, I'll test it out once, give me more details:
Platform,
Platform version,
File,
File type

@msmartin4470
Copy link

[√] Flutter (Channel stable, 3.19.2, on Microsoft Windows [Version 10.0.19045.2965],
locale en-US)

the file was just a .png image. I cannot share the actual file with you I'm sorry.

Thanks

@msmartin4470
Copy link

Were you able to find anything with this?

@incrediblezayed
Copy link
Owner

Were you able to find anything with this?

Not yet, but can you tell me how you are trying to save the file? So that I can reproduce?

@msmartin4470
Copy link

await FileSaver.instance.saveAs(name: p.basenameWithoutExtension(path), ext: p.extension(path), mimeType: MimeType.png , file: File(path));

@msmartin4470
Copy link

Anything new with this? I noticed another issue with the same problem opened. I think there just needs to be a write file after GetSaveFileName(&ofn) in file_saver_plugin.cpp. I was going to attempt myself, but I ran into some other issues. If there is anyway to get the in quick it would be super helpful.

Thanks,
Mike

@rmahmadkhan
Copy link

any update on support for web - to save file to specific folder?

@incrediblezayed
Copy link
Owner

Can we all discuss it out on discord? can anyone please create a thread under feature-request channel?

@incrediblezayed incrediblezayed added the enhancement New feature or request label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants