Robert Valentino Well-Known Member Licensed User Longtime User Jun 22, 2021 #1 When I use the below code with contentchooser to try and pick pdf files it displays pdf's and db's Code: Copy PickFile.Show("application/pdf/*", "Pick a file to import") when I use the following to pick a db, again I get pdf's and db's Code: Copy PickFile.Show("application/vnd.sqlite3/*", "Pick a Database") I've tried a bunch of different SQLite mime types and all result in the same (PDFs being shown with DBs). Is there a different mime to only show PDFs and only show DBs in the contentchooser list?
When I use the below code with contentchooser to try and pick pdf files it displays pdf's and db's Code: Copy PickFile.Show("application/pdf/*", "Pick a file to import") when I use the following to pick a db, again I get pdf's and db's Code: Copy PickFile.Show("application/vnd.sqlite3/*", "Pick a Database") I've tried a bunch of different SQLite mime types and all result in the same (PDFs being shown with DBs). Is there a different mime to only show PDFs and only show DBs in the contentchooser list?
Robert Valentino Well-Known Member Licensed User Longtime User Jun 22, 2021 #2 OK, partly solved - the below works for PDFs - tried sames with SQLite3 but then nothing shows Code: Copy PickFile.Show("application/pdf", "Pick a file to import") ' Removed ending /* Code: Copy PickFile.Show("application/vnd.sqlite3", "Pick a Database") ' Removed ending /* <- NOW shows nothing Upvote 0
OK, partly solved - the below works for PDFs - tried sames with SQLite3 but then nothing shows Code: Copy PickFile.Show("application/pdf", "Pick a file to import") ' Removed ending /* Code: Copy PickFile.Show("application/vnd.sqlite3", "Pick a Database") ' Removed ending /* <- NOW shows nothing
M Mahares Expert Licensed User Longtime User Jun 22, 2021 #3 Robert Valentino said: PickFile.Show("application/vnd.sqlite3/*", "Pick a Database") Click to expand... I think it is this: Code: Copy PickFile.Show("application/octet-stream", "Pick a Database") Upvote 0
Robert Valentino said: PickFile.Show("application/vnd.sqlite3/*", "Pick a Database") Click to expand... I think it is this: Code: Copy PickFile.Show("application/octet-stream", "Pick a Database")
agraham Expert Licensed User Longtime User Jun 22, 2021 #4 octet-stream is a general binary file type.You could also try https://www.iana.org/assignments/media-types/application/sql Upvote 0
octet-stream is a general binary file type.You could also try https://www.iana.org/assignments/media-types/application/sql
LucaMs Expert Licensed User Longtime User Jun 22, 2021 #5 agraham said: octet-stream is a general binary file type.You could also try https://www.iana.org/assignments/media-types/application/sql Click to expand... I was searching and writing... Useful link (where should I post this?): https://www.iana.org/assignments/media-types/media-types.xhtml (CTRL + F Sqlite, there) Upvote 0
agraham said: octet-stream is a general binary file type.You could also try https://www.iana.org/assignments/media-types/application/sql Click to expand... I was searching and writing... Useful link (where should I post this?): https://www.iana.org/assignments/media-types/media-types.xhtml (CTRL + F Sqlite, there)
Robert Valentino Well-Known Member Licensed User Longtime User Jun 25, 2021 #6 Mahares said: I think it is this: Code: Copy PickFile.Show("application/octet-stream", "Pick a Database") Click to expand... This option came close, I happen to have an .aab file on my device and it listed it with the sql db files. Will play with some others Upvote 0
Mahares said: I think it is this: Code: Copy PickFile.Show("application/octet-stream", "Pick a Database") Click to expand... This option came close, I happen to have an .aab file on my device and it listed it with the sql db files. Will play with some others