Currently droogle doesn't provide the form to upload user's file to google drive. It just creates a blank file with no content.
I have created a form, through which user can upload file to google drive directly.

URL to upload file: www.example.com/droogle-upload

Here user can upload file. Currently I have added validation for pdf txt doc docx xls xlsx ppt pptx jpg jpeg png.
Also currently drrogle lists only limited type of files from google drive. After patch, it will display all the files from google drive.
Also added support for drupal site mail usage instead of default 'wcheung@babson.edu'. Default email will be used only if site email is not available.

Comments

sharma.amitt16 created an issue. See original summary.

sharma.amitt16’s picture

sharma.amitt16’s picture

sharma.amitt16’s picture

Title: File upload support » File upload form support with droogle
Issue summary: View changes
eugene.ilyin’s picture

Status: Active » Needs work

Seems patch provides too many useless changes and bad code style. Please sort out with it before I can check it.

sharma.amitt16’s picture

Issue summary: View changes
sharma.amitt16’s picture

Thanks @eugene.ilyin for reply.
Useless code from patch is removed. Also please mention the bad code style.

Modified function droogle_gdrive_connect() becuase original version is unable to find the Google./client.php on windows with IIS.

sharma.amitt16’s picture

Hi @eugene.ilyin, would you please review the patch and approve if it is worth. I have added the functionality to upload the user file to google drive from droogle.

sharma.amitt16’s picture

Status: Needs work » Needs review
sharma.amitt16’s picture

Assigned: sharma.amitt16 » Unassigned