This topic is locked

Reading content before uploading document

11/30/2010 10:38:48 AM
PHPRunner General questions
S
sgchan author

Hi, I am using 5.3 build 7024. I have a program that allows the user to upload MS-Word documents. As soon as it clicks Upload, I want to read the document content & save it into a field BEFORE the document is uploaded.
For example, if I upload my MS-Word doc (called ABC.doc) I want the system to open the file, grab its content, save the content in a field and finally upload the document.
Is this possible? The filename field contains only the file name without the path.
Thank you very much in advance for your help.

Sergey Kornilov admin 11/30/2010

No, it's not possible this way. "system" doesn't have access to document on your hard drive, you need to upload it first and then perform actions on the server side.