Exporting a CSV of entries by a user to Google Spreadsheets ??
I have a site which allows a logged in user to download a CSV file of all entries created under that user from the front end of my site (when a user is logged in).
I use the following code to allow a user to download their CSV file of all entries:
It works well. (using "user_id" allows for generic download of any current logged in user) I also want to allow users though, (who have a Google DOCS account) to be able to automatically import their CSV file into Google Spreadsheets. I've tried the following code (which a user would add to a blank spreadsheet in the first cell on a Google spreadsheet):
Unfortunately, Google spreadsheets tries to import the user's CSV Formidable file - but then returns the error. "Does not have permission"
I assume the above code would need log in information as well...?
Because different logged in users may want to import their CSV files into Google spreadsheets - therefore the permission/login code would need to be generic - perhaps "current_user" ????Or will it not work at all...?
Any help. most appreciated...