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

Feature request: an attribute to set some default filename when saving #626

Closed
Mithgol opened this issue Apr 14, 2013 · 13 comments
Closed

Comments

@Mithgol
Copy link
Contributor

Mithgol commented Apr 14, 2013

As @linb pointed out in #615, while node-webkit has nwworkingdir attribute to set the default path for a file, there's no attribute to set that file's default name. Such an attribute, however, could be useful when nwsaveas is set. Even if the user does not entirely accept the application's suggested filename, its details (such as the extension after the last dot) could be valuable.

@feugy
Copy link

feugy commented Apr 27, 2013

👍

I suggest to use the value attribute to specify default file name:

<input style='display:none' type='file' value='default name.xlsx' nwsaveas accept='application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'>

@rhiokim
Copy link

rhiokim commented Jun 15, 2013

+1

1 similar comment
@daiyam
Copy link

daiyam commented Jul 3, 2013

+1

@szwacz
Copy link

szwacz commented Aug 20, 2013

Any chances to have this feature in near future? From user standpoint it is very useful stuff.

@Subash
Copy link

Subash commented Aug 25, 2013

💯

@b1rdex
Copy link

b1rdex commented Sep 4, 2013

Going to code this in. Now checking out all the source-code stuff…

@b1rdex
Copy link

b1rdex commented Sep 5, 2013

Good news guys, I did it: nwjs/blink#1
I decided not to use value attribute for setting default filename and used nwsaveas attribute for it. More info and examples are in pull request.

пс. Мицгол, позови на хабр 🍭

@Mithgol
Copy link
Contributor Author

Mithgol commented Sep 5, 2013

Мицгол, позови на хабр

У меня запас приглашений временно окончился ≈неделю назад. Но на будущее уточняю: b1rdex?

@b1rdex
Copy link

b1rdex commented Sep 5, 2013

Да, спасибо.
05.09.2013 14:43 пользователь "Mithgol" notifications@github.com написал:

Мицгол, позови на хабр

У меня запас приглашений окончился ≈неделю назад. Но на будущее уточняю:
b1rdex http://habrahabr.ru/users/b1rdex/?


Reply to this email directly or view it on GitHubhttps://github.com//issues/626#issuecomment-23842074
.

@rogerwang
Copy link
Member

Patch merged. Thanks!

@Mithgol
Copy link
Contributor Author

Mithgol commented Sep 13, 2013

Да, спасибо.

Приглашение на Хабрахабр отправлено, режим read-only на Хабрахабре снят.

@Subash
Copy link

Subash commented Sep 13, 2013

How can I use this with nwsaveas?

@Mithgol
Copy link
Contributor Author

Mithgol commented Sep 13, 2013

See “Other types of dialogs” in “File dialogs”.

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

No branches or pull requests

8 participants