how to upload files to onedrive for business through drupal? - drupal

I have a drupal site and an oneDrive for business account. My site has a software section through which we provide software to download for public. What we use to do is that we upload the software in our ODFB account, create a download link, then put the link after the description of the software.
What I wanted to do is that while posting the software, there should be an option to upload the software. And the file should go straight to our ODFB account instead of the server where the website is hosted.
Is it possible? Any module available?

This should be possible using the OneDrive upload APIs. If the file size is less than 100MB, you should be able to use the simple item upload API:
https://dev.onedrive.com/items/upload_put.htm
However, if the file is larger, you can use resumable item upload API:
https://dev.onedrive.com/items/upload_large_files.htm
With the right permissions, you can access your OneDrive for Business using /drives endpoint and save the file there.

Related

Shiny image hosting

I have been trying to make a very simple app using shiny that basically does this:
Let's users upload a photo
Downloads a csv file with the public links to each photo (this is to be used by shopify to download the images and re-upload to their servers)
I am having trouble doing the second part.
Both Dropbox and Google Drive let me store objects using their API and r packages, but they have deprecated a url to the direct object, instead opting for a "preview" version of the file, which of course makes shopify go crazy and reject my url.
Any thoughts as what other storage service or workaround that can work?

Can i hide .laccdb files or change its name with MS Access settings

Title says it simply.
I have a MS Access Database on a shared drive and the majority of users aren't experts so quite often the leave their PC with the Database open then it locks the PC, someone else will come along and switch it to their account, go to open the Database and get confused by the two files with the same name.
I can think of solutions for this e.g. using shortcuts so they dont actually see the laccdb or accdb file
But what I want to know is if there are any settings in Access (2010) that can make the .laccdb file hidden when it is created or just give it a random name like word or excel tmp files?
When I google this the results are more for removing people from the database so you can delete the laccdb file
This is actually a multi-user setup even though just one user can be active.
So you need to distribute the frontend to each user while having the backend in a folder with access for all users - that could be a subfolder of C:\Users\Public.
Here's is a script that will handle the distribution:
Deploy and update a Microsoft Access application in a Citrix environment

Is there a place to temporarily hold code?

I am currently using webflow to design a site and want to add custom code that requires an upload of an ajax data txt file. I'd like to externally link the file, I'd normally upload to a personal hosting account, but I don't have one at the moment. So I am looking for a place to upload the txt file to and when you open it opens something like this jQuery CDN
IS there such a facility available? I don't need the file to be there long, just for a few hours for testing.

Public facing webfolder Google malware warning

OS: Windows
Programming: C#, asp.net
I have a website that has a fileupload control and all the user uploaded files are stored in a folder on the server. This folder is NOT indexable by search engines and not viewable as a url (or file list view). From time to time I get a message from google webmaster tools that this folder has malware. As this folder is for uploading files, I have little control on its contents.
I wonder, there are so many websites out there which allow users to upload files.
What are the best practices.
Any tips to just avoid that Google keeps blacklisting this folder from time to time?
Thanks a lot in advance,
Prasad.
Are the files then referenced in links on your webpage or sitemap.xml? Google will find them afterwards, when indexing pages where the files are referenced.
Did you find the malware files? What file extensions had they? Can you restrict the users to upload only certain (possibly safe) file types?

How can I view an uploaded docx file in asp.net

I am working on a download management system in asp.net and I can upload and download a docx file. I want to view the uploaded file. I tried using google API but looks like I have to upload the file in google drive itself in order to be able to view it from google drive. I don't want to upload the file in google drive. Is there any other API that helps me to just view the uploaded docx file?
It would be even better if it can be viewed as well!
Use an iframe to embed File.embedLink, documented on
https://developers.google.com/drive/v2/reference/files#resource
I assume you know how to upload files in ASP.net
Using Office Web Apps you can achieve that, provide like of your uploaded document on your site, when the user clicks it will open in the browser it self Link, Read the documentation
Here is the link for API Site

Resources