I embed documents via a Google doc viewer iframe into my site:
$('#previewContainer')
.html('<iframe src="http://docs.google.com/viewer
?url=www.mysite.com/dev1/myfile.txt''&embedded=true" width="400" height="400" style="border: none;"></iframe>')
});
I would like to do the same thing, but for files included in a protected user area i.e link to the file is not public.
I'm thinking of creating a public "cache" folder on which I would store the file temporarily for using in Google doc viewer, then delete the file, but I am looking, if it exists, for a more simple solution...
Is there any possibility in jQuery or php to temporarily make the link public (for ex an edit of the htaccess rule) ?
Absolutely no idea how to fix that, thanks a lot for your time.