Posted by BlackyWhoElse on June 29, 2012 at 10:08am
I got a problem with the formtype 'manage_file'.
After a day or two the images witch I uploaded just disapear.
$form['file'] = array(
'#title' => t('Achievment Image'),
'#type' => 'managed_file',
'#upload_validators' => array('file_validate_extensions' => array('jpeg jpg png gif'), 'assets_validate_not_filename' => array('test.')),
'#upload_location' => 'public://achievements/',
'#progress_indicator' => 'throbber',
'#status' => FILE_STATUS_PERMANENT,
'#progress_message' => 'One moment while we save your file...',
Thanks in advance.
PS: Correct me if my English is bad ;)