Comments (6)
@crazecoder That document does not have the information about docx, pptx, xlsx. I have tested the XLSX these value which worked successfully. The others are inferred by the naming convention.
docx: org.openxmlformats.wordprocessingml.document
pptx: org.openxmlformats.presentationml.presentation
xlsx: org.openxmlformats.spreadsheetml.sheet
from open_file.
OpenFile.open("/sdcard/example.txt", type: "text/plain", uti: "public.plain-text");
You can find the uti you need here:
https://developer.apple.com/library/archive/documentation/Miscellaneous/Reference/UTIRef/Articles/System-DeclaredUniformTypeIdentifiers.html#//apple_ref/doc/uid/TP40009259-SW1
from open_file.
Thanks @crazecoder
from open_file.
There is the same bug on android. Any solutions for this?
from open_file.
@AndroidNils Android just relies on you having an application which knows how to open the corresponding mime type. These are the mime types which the plugin advertises for the following extensions:
https://github.com/crazecoder/open_file/blob/master/android/src/main/java/com/crazecoder/openfile/OpenFilePlugin.java#L191
docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
xslx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
pptx: "application/vnd.openxmlformats-officedocument.presentationml.presentation"
The match the ones listed in
https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
@AndroidNils have you debugged the OpenFilePlugin.startActivity()
to make sure everything looks ok for your use case?
from open_file.
I think this should have been stated in the docs upfront to save everybody time!
from open_file.
Related Issues (20)
- Failed to find configured root that contains ... HOT 22
- Namespace not specified.
- The file cannot be opened and there is no error message HOT 5
- open_file 3.3.2: OpenFilePlugin.java uses or overrides a deprecated API. HOT 2
- not working in android 33 HOT 5
- Security: fileprovider allow access to all app files
- Localization issue with iOS modal in open_file package HOT 2
- Android 33 version not open file error HOT 1
- open_file requires MANAGE_EXTERNAL_STORAGE which is considered Dangerous HOT 5
- Add mobi and epub support. HOT 1
- A compile warning
- [Request] Add support for .ipa files like .apk files
- Keyboard become invisible when you open file with active keyboard (IOS) HOT 1
- Why OpenFile requires Multidex support?
- Cannot open file in app bundle? HOT 1
- webData isn't defined
- AGP 8 namespace issue HOT 1
- Cannot build apk
- how to load assets file
- How to open .avi on iOS?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open_file.