Is it possible to upload/choose the file from sharepoint location to application using HTML5 file upload? - html

I would like to open/select the file from SharePoint location, the file dialogue box(HTML file upload feature) should open with a list of files from the SharePoint directory instead of pointing to the system directory. is it possible?
Currently, the dialogue box opens with the current system directory file location.
Is it feasible with all browsers?

Yes, it is feasible.
However, you might need to custom design the interface.
You would need to perform a rest API call to SharePoint document library to show the list of files. You can use Microsoft Graph API to make the calls and extract the details.

Related

How to distribute a report from MS Access to Sharepoint Online

In the Microsoft support document Distribute a report [https://support.office.com/en-us/article/distribute-a-report-561a9066-00ab-41ee-8f07-a0734810a778] is a section: Export a report to a folder or Sharepoint document library.
The description does not match with my MS Access version.
My version is Microsoft Access for Microsoft 365.
Can anybode tell me how to enter the URL of Sharepoint Online in the navigation pane?
Well, the instructions are that you want to put a word file, a pdf file, a text file or whatever into that SharePoint folder.
So, the advice in that example is NOT limited to Access. All they are saying is to run the report, export it as a PDF file. You are THEN free to copy and place that resulting PDF file into that shared folder on SharePoint. So, how you get/place/copy that PDF file into that folder is the same as how you would copy a word file, a excel file or any kind of windows file into that folder.
Quite sure you just type in the URL that points to the folder name, and then you are free to use the up-load files option in the SharePoint site. The other way is to use the "map" folder option from SharePoint, and that will give you a look alike or useable folder from the windows explore. So, how you get the exported Access PDF file (the report that is now a simple PDF) into that folder is no different then how you copy any other file into that SharePoint folder.
If a user can't copy or get a word file, a text file, Excel file, or in this case a simple PDF file into that folder, then all is lost here.
You are being asked to place/copy a pane jane windows file.
So, you run the Access report. In the ribbon (assuming Access 2007 or later) there is a export to PDF option. You thus create the PDF file on your computer, and then place that file on the Shared folder on SharePoint. So the REAL question here is?
I have a file on my computer - how can I place it into a SharePoint folder? How this works for ANY file, including that PDF you created (exported) from Access is 100% the same.
So, users will have to learn how to place a file into that SharePoint folder. Once they learn how to do this, then they can place any file - such as a PDF in this case into that folder.
So, creating that plain jane PDF file from the Access report results in a static PDF file, and then you simply copy that file to the SharePoint folder.
Now, you might want to be able to skip the step after you create the PDF, and it would be more convenient to simply specify the URL WHEN exporting the PDF from Access. As noted, to do this you need to map the SharePoint folder to a windows folder, and then this will work.
The steps are:
Log into https://portal.office.com
Click on your apps menu and choose SharePoint
Browse to a document library > Documents
In the bottom left corner of the browser click the “Return to classic SharePoint”
You have to set trusted locations. The full set of steps for this are here:
https://jasoncoltrin.com/2018/10/25/solved-sharepoint-office365-open-with-explorer-not-working-on-windows-10-internet-explorer-11/
Once that folder can be used/seen in windows, then you can specify that folder when you export the PDF. Only you can decide if all those extra steps are worth the effort, or that users just place the resulting PDF file into that SharePoint folder the SAME WAY that they now place any old windows file into that SharePoint folder.

chrome.fileSystem on files/folders inside the app/extension

I am working on a Chrome App where I need the users to open files in a directory. For his own files, I can offer them a dialog through
chrome.fileSystem.chooseEntry
which works well. However that seems to limit me to the "Downloads" directory and Google Drive on my Chromebook. I would also like to ship some files with the application itself, so the files/folders would be located inside the app package. Is it possible to access these files through the fileSystem API?
I would not need the user to choose the files from a dialogue, it would be enough if I could get a handle to these files and offer to display them on the click of a button through my app.
Thanks in advance
You can read included files using chrome.runtime.getPackageDirectoryEntry(function(directoryEntry) {})

Is it possible to access and list files of local system in web browser.

My requirement is to show a panel where I list the local system directory, from where I drag and drop the files inorder to perform operations on it.
In HTML5 the FileSystem API is available , but most of the browsers are not supporting.
Is it possible by using input type as file? Like we browse and select a directory, then we can see the list of files and their details?
As the previous commenters correctly noted, this is not possible because it is considered a security hole. Think about a malicious script that could read out everything on your local file system just by visiting a web page.
You can however implement file drag-and-drop like this: https://github.com/moxiecode/plupload

Get access to pdf and other format file on local disk (like mediaGallery)

I'm developing a Chrome application where I want to do basic stuff with currently downloaded files(mostly I want to move them to a new location using an application or extension whichever is possible).
I'm able to get access to the image, audio, video file using the mediaGallery API of Chrome apps. Is there a possible way I can get access to and being able to move other format file from their current location to some other location using Chromium apps?
You certainly read the contents of any directory that the user has given you access to. And, once the user has done this, you can retain the entry so on subsequent executions you don't have to keep asking the user to select the directory. Then, once you have a file, you can use the file API to manipulate it.
This is in principle all the media API does, except that it comes with knowledge of some built-in media directories.

Is it possible for us to download a file to a sandboxed location using File API available in HTML 5?

I wanted to ensure the documents I let user download are programmatically manipulated throughout program.
I came to know that File API does give Apps the opportunity to manipulate them. But how can we store the Files in the sandboxed location?
You cannot directly read or write anything to the file system. You always have to go through either the usual upload/save dialog, or rely on desktop drag-and-drop (you can drag files into most modern browsers, and out of Google Chrome, at least).
It seems you can't let the browser download the file directly into File API's sandbox now. You have to fetch the file by yourself in JavaScript and write it to a file through File API. If the file is from the same origin, you can just fetch it by XHR.