File picker [message #368] |
Tue, 07 November 2006 12:07  |
salamsy
Messages: 18 Registered: October 2006 Location: Dakar
|
Junior Member |
|
|
Hi All,
I am able to select a picture from a subdir but have some problems for doing the same with word documents from a subdirectory. Please help.
Abdou
Abdou Salam
|
|
|
|
Re: File picker [message #372 is a reply to message #370] |
Wed, 08 November 2006 04:49   |
salamsy
Messages: 18 Registered: October 2006 Location: Dakar
|
Junior Member |
|
|
For uploading word and/or pdf documents, my question is where to declare :
- the upload subdirectory
- the file type
- the maximum file size ?
Abdou Salam
|
|
|
|
Re: File picker [message #374 is a reply to message #373] |
Wed, 08 November 2006 07:19   |
salamsy
Messages: 18 Registered: October 2006 Location: Dakar
|
Junior Member |
|
|
Below is what is specified in xample
$fieldspec['picture']= array('type' => 'string',
'size' => 40,
'subtype' => 'image',
'imagewidth' => 75,
'imageheight' => 95,
'control' => 'filepicker',
'task_id' => 'x_personfilepicker)');
This example is for uploading picture but for Word or PDF documents I must specify the following :
$subdir = $fileobject->upload_subdir;
$filetypes = $fileobject->upload_filetypes;
$maxfilesize = $fileobject->upload_maxfilesize;
Abdou Salam
|
|
|
Re: File picker [message #375 is a reply to message #374] |
Wed, 08 November 2006 07:58   |
salamsy
Messages: 18 Registered: October 2006 Location: Dakar
|
Junior Member |
|
|
Sorry, let me ask more clearly what are the other accepted file types for file picker ? I have submitted 'application/msword' and it is not working.
Abdou Salam
|
|
|
|
|
|
|
Re: File picker [message #380 is a reply to message #379] |
Wed, 08 November 2006 11:03   |
salamsy
Messages: 18 Registered: October 2006 Location: Dakar
|
Junior Member |
|
|
Yes. It is working now. I'm picking fine documents.
For file download I have this message : No file specified for download.
Where to specify a file for download ? It is the same file that I was able to pick lastly. Now, in a LIST2 I select a record containing the picked file. When I press a navigation button "Download Attachment" I get the above mentioned message.
Abdou Salam
|
|
|
|
|