Hi,
I've set up a table so that users can upload .pdf or .doc files. They're able to upload the files fine, but I'm not sure what url I should use for downloading. I tried using the standard one I would use for images:
/PATH/TO/db.cgi?db=TABLE_NAME&uid=default&do=view_file&cn=COLUMN_NAME&id=PK_COLUMN
But with that url, a pdf file just came up as gibberish. I think it failed to send the proper headers to the browser to indicate that it was a pdf file. Is there a fix for this?
Thanks very much.
Fractured Atlas :: Liberate the Artist
Services: Healthcare, Fiscal Sponsorship, Marketing, Education, The Emerging Artists Fund
I've set up a table so that users can upload .pdf or .doc files. They're able to upload the files fine, but I'm not sure what url I should use for downloading. I tried using the standard one I would use for images:
/PATH/TO/db.cgi?db=TABLE_NAME&uid=default&do=view_file&cn=COLUMN_NAME&id=PK_COLUMN
But with that url, a pdf file just came up as gibberish. I think it failed to send the proper headers to the browser to indicate that it was a pdf file. Is there a fix for this?
Thanks very much.
Fractured Atlas :: Liberate the Artist
Services: Healthcare, Fiscal Sponsorship, Marketing, Education, The Emerging Artists Fund