We have moved to a new Sailfish OS Forum. Please start new discussions there.
194

File picker needed [released]

asked 2013-12-24 17:56:32 +0200

fk_lx gravatar image

updated 2014-01-03 13:34:01 +0200

Venemo gravatar image

Sailfish definitely needs a file picker dialog. Lack of that component already makes some ported apps from Harmattan less functional (e.g. Tweetian and no way to add pictures/photos).

edit retag flag offensive reopen delete

The question has been closed for the following reason "released in a software update" by nthn
close date 2017-08-22 15:20:52.656267

Comments

11

Yes, agree.. this is is a must have.. Many applications rely on this feature to be available in the platform. Also, picking of files should not be limited to those file types that phone has a way to open, but any file should be selectable. Especially normal and basic .txt -files, in addition to media content etc.

foss4ever ( 2013-12-25 06:49:25 +0200 )edit
8

Also should be able to select multiple files, for use-cases such as selecting multiple files as an email attachment.

MartinK ( 2013-12-25 16:52:13 +0200 )edit
3

Yes, I think it's the Jolla/Nemo/Mer/geek way to have a real file picker and expose file system to the user :( It would be cool if you could think of some more limiting options as well. Such as showing only pictures or files of recognized types without a mess of real directories.

Artem ( 2013-12-30 01:03:16 +0200 )edit
3

also, don't forget the microSD card :-)

AL13N ( 2014-01-03 14:03:38 +0200 )edit
1

@Artem Of course users should be able to pick any file on the filesystem.. There are many use cases for that (sharing and transfering content to others, uploading stuff to web services, selecting files for editing their metadata, checking how much disk-spacea set of files use, etc etc). Filters can ofc be available to make selecting/searching certain types of files easier, but the whole filesystem should be also exposed (naturally respecting the rwx-access rights of the user/group).

foss4ever ( 2014-01-04 15:37:34 +0200 )edit

7 Answers

Sort by » oldest newest most voted
29

answered 2014-01-08 00:04:35 +0200

MartinK gravatar image

updated 2015-01-06 04:10:19 +0200

bennypr0fane gravatar image

What about using the FileDialog QML component added in Qt 5.1 ?

Maybe with some slight Silica tuning. Its description explicitly says it is designed to be easily extensible to fit a given platform.

edit flag offensive delete publish link more

Comments

+1 This'd be quite nice!

Venemo ( 2014-01-08 00:09:47 +0200 )edit

Looking good

flywheel ( 2014-01-08 03:31:33 +0200 )edit

Yep, this'd do it..

foss4ever ( 2014-01-08 14:19:05 +0200 )edit
11

answered 2016-09-25 18:44:10 +0200

coderus gravatar image

Since 2.0.2 you can use Sailfish.Filemanager: https://github.com/CODeRUS/splashscreen-changer/blob/master/settings/SecondPage.qml

edit flag offensive delete publish link more

Comments

Is there any documentation on how to use Sailfish.FileManager?

michfu ( 2017-08-24 23:38:34 +0200 )edit
10

answered 2013-12-24 20:18:41 +0200

lbt gravatar image

We're thinking about it :)
This non-answer just stops vote questions from clogging up the 'Unanswered' section

edit flag offensive delete publish link more

Comments

8

thinking or working on it? :-)

fk_lx ( 2013-12-24 20:40:02 +0200 )edit
7

Please think about adding this filepicker to the browser as well, so that one can upload e.g. pictures to a site.

duesselschorsch ( 2013-12-25 10:56:18 +0200 )edit
1

Isn't the FilePicker going to be a UI dialog or some other type of component that system and 3rd-party apps can use to provide this functionality to users when needed?

foss4ever ( 2014-01-04 15:41:18 +0200 )edit
2

This is embarrassingly slow even for Jolla. I don't know how many apps, including my own, that have had to implement their own solutions.

Don't waste your time making annoying animations. Use it for implementing basic functionality!

And yes; I'm effing frustrated by now!!!

Tanghus ( 2015-10-02 05:27:00 +0200 )edit
2

@lbt, "thinking about it" for three years??? :-O

Seriously?

pichlo ( 2016-09-26 10:42:38 +0200 )edit
10

answered 2017-08-21 17:26:07 +0200

Rikujolla gravatar image

In the SFOS version 2.1.1.24 FilePicker Dialog is introduced. It seems to work fine in the basic file picking scenario. It would be nice to have a feature to select or save custom path to selection menu. Now you can select between Memory card, Home folfer or System files. The feature suggested would give the developer an opportunity to make even better user experience.

edit flag offensive delete publish link more

Comments

Please create a new topic for your request, that way it can gain more visibility.

nthn ( 2017-08-22 15:21:47 +0200 )edit
3

answered 2014-02-20 20:45:45 +0200

ray-ven gravatar image

+1 Please add this - a lot of apps need this.

edit flag offensive delete publish link more

Comments

3

Please turn this into a comment instead of an answer

Bulder ( 2014-02-20 21:16:05 +0200 )edit
2

answered 2016-09-25 15:31:40 +0200

codeandcreate gravatar image

I just done a simple file picker dialog for my projects. you will find the source to use in your projects here: https://github.com/codeandcreate/harbour-cac-fileSelect

edit flag offensive delete publish link more

Comments

1

I'm not sure if this import is yet allowed for Harbour applications, but Sailfish.Pickers import provides a bunch of pickers. Also, in the near future, there will be some WebView-specific pickers available from the Sailfish.WebView.Pickers import, e.g. see https://github.com/sailfishos/sailfish-components-webview/tree/master/import/pickers

chris.adams ( 2016-09-26 09:35:05 +0200 )edit

It's not meant to be imported directly. it's just a example; a qml that can be freely used in own programs :) (harbour-* is just because there is a demo-package also)

codeandcreate ( 2016-09-26 10:07:15 +0200 )edit
0

answered 2014-12-13 13:00:39 +0200

Yaniel gravatar image

Technically a non-answer but a design for this that came to mind that I think is quite Sailfish'y:

A file list where you can select a single file of the desired type (specified by the app?) by tapping it once. Folders are a bit of a problem but I would open them with a single tap instead of selecting (there may be cases where you can select a folder which would need some thinking over).

As for multiple file selection: tap and hold a file, a prograss bar appears on it, like the remorse timers just it fills instead of draining. Once the bar is full, mark the file as selected and pop up an ok button at the bottom of the screen or in the pulley menu. This "select timer" should be quite short of course, max 1s or so. For deselecting, the same mechanic could be applied in reverse.

edit flag offensive delete publish link more

Question tools

Follow
23 followers

Stats

Asked: 2013-12-24 17:56:32 +0200

Seen: 3,799 times

Last updated: Aug 21 '17