1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
Issue with 'upload' widgets & Import on servers which do not allow file upload
------------------------------------------------------------------------------
1) Introduction
If your server does not allow file upload because of some security issue,
then with the default configuration; The Item_Input.php script may not work
properly because the <FORM ...> has a enctype="multipart/form-data" added.
The Import process will also suffer from this problem, and it may not be
obvious that this is the reason.
2) Workaround - Item_Input (No workaround exists for Import process)
You can bypass this issue by getting rid of the 'upload' input widget for
IMAGEURL. Change it to 'saveurl(50,*,"gif,jpg,png")' or 'hidden' only.
UPDATE s_attribute_type set input_type = 'hidden'
WHERE s_attribute_type = 'IMAGEURL';
A change added to 0.39p2 and 0.50-dev5 means that if
no 'upload' widget types (currently 'upload(...) or upload_or_saveurl(...)'
then the 'enctype="multipart/form-data"' will not be added to the form.
You should also turn off all file upload functionality by setting the
include/config.php variable $CONFIG_VARS['file_upload_enable'] = FALSE;
3) Notes
PHP 4.1.2 on Redhat 7.3 (and perhaps other systems) has file uploads
disabled by default. If you try to use any of the file upload widgets
the item_input updates will fail without any visible message, other
than 'Operation not available'. You can either enable file uploads
in your php.ini file, or perform the workaround detailed above.
|