Categories > OpenTBS with ODT >

when I download the merged file, it is read-only

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: william
Date: 2010-06-21
Time: 15:08

when I download the merged file, it is read-only

I am using this code to download the merged file:
$file_name = "test.odt";
// Output as a download file (some automatic fields are merged here)
$TBS->Show(OPENTBS_DOWNLOAD+TBS_EXIT, $file_name);
and the downloaded file is opened in OO as expected (WinXP), but it is read-only.  This is fine for some applications, but I really need to be able to have the user edit the document in others.

Any suggestions on how to set this up so it downloads read-write ?

Thanks,

bill
By: Skrol29
Date: 2010-06-21
Time: 16:22

Re: when I download the merged file, it is read-only

Hi William,

When you open the document directly when is is downloaded by the browser, then Windows save it in the temp directory and flag is as read-only, and then it calls the application corresponding to the file.
If you'd like to edit a downloaded file, then you have to saved it locally first (I mean in a directory selected by you), and then you can open and edit it.
By: william
Date: 2010-06-22
Time: 15:05

Re: when I download the merged file, it is read-only

Thank you.  Much appreciated.