Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2006-09-28 04:34:18

Vergyone
New member
Registered: 2006-09-28
Posts: 3

Upload problem with EFM 1.1.1

Hello

I have a problem with the Extended File Manager EFM 1.1.1, also with the ImageManager!

If i try to upload a file or a image i get the error: "Unable to upload File. Either Maximum file ....."

I have checked the php.ini: file_uploads=on, upload_max_filesize are ok!

In the config.inc.php a changed the images_dir and image_url, but this is not the problem, because if i open the EFM i get the right directory.

I have checked the permission for the image folder, it is 777!

I can create new folder!!!! , but i get the error if i upload a file!

Can anyone helf me?

Vergyone

Offline

#2 2006-09-28 05:01:57

koto
Xinha Pro
Registered: 2006-01-09
Posts: 58

Re: Upload problem with EFM 1.1.1

You have to adjust these settings in config.inc.php (or javascript file that passes them to backend)

/* Maximum upload file size in Kilobytes */
$IMConfig['max_filesize_kb_image'] = 2000;

$IMConfig['max_filesize_kb_link'] = 5000;

/* Maximum upload folder size in Megabytes. Use 0 to disable limit */
$IMConfig['max_foldersize_mb'] = 0;

Last edited by koto (2006-09-28 05:02:20)

Offline

#3 2006-09-28 05:16:07

Vergyone
New member
Registered: 2006-09-28
Posts: 3

Re: Upload problem with EFM 1.1.1

This is in my config.inc.php:

/* Maximum upload file size in Kilobytes */
$IMConfig['max_filesize_kb_image'] = 20000;

$IMConfig['max_filesize_kb_link'] = 5000;

/* Maximum upload folder size in Megabytes. Use 0 to disable limit */
$IMConfig['max_foldersize_mb'] = 0;

Im testing to upload small images e.g. icons with small size and i get the error!

If i use the imageManager and not the EFM to upload a image, i get no error, but i don´t see the new uploaded image in the folder (i only see the old images)

Offline

#4 2006-09-28 16:00:45

koto
Xinha Pro
Registered: 2006-01-09
Posts: 58

Re: Upload problem with EFM 1.1.1

Please make the ExtendedFileManager/demo_images folder writable and test using the supplied example (examples/full_example.html) - just select the EFM plugin and click the button to show Xinha in a browser - and try to upload there. Is it successful?

Being able to create directories suggests that the problem is with the upload process itself.
Sometimes PHP uploads  fail beacuse of full/inaccessible /tmp directory..., please check that.

Last edited by koto (2006-09-28 16:08:00)

Offline

#5 2006-09-29 07:08:49

Vergyone
New member
Registered: 2006-09-28
Posts: 3

Re: Upload problem with EFM 1.1.1

Hi koto,

the demo_images folder and my own folder are writable. To upload in both folders, also with the example isn´t successful! I get the error: "Unable to upload File. Either Maximum file .....".

What do you mean with php tmp? If i look in my php.ini, i see upload_tmp_dir=0. Is this a problem?

I use Xinha with a postnuke system. Can i modify Xinha, so that Xinha use the postnuke tmp_dir?
In postnuke i have a up/download module and no problem with the upload?

Last edited by Vergyone (2006-09-29 07:09:44)

Offline

#6 2006-09-29 09:14:20

koto
Xinha Pro
Registered: 2006-01-09
Posts: 58

Re: Upload problem with EFM 1.1.1

Vergyone wrote:

Hi koto,
What do you mean with php tmp? If i look in my php.ini, i see upload_tmp_dir=0. Is this a problem?

It surely looks like it - from the docs:

upload_tmp_dir

    This defines where PHP will store uploaded files temporarily until the user can move them to a more permanent location.

    Example:
    Store all uploaded files in /tmp.
    upload_tmp_dir = /tmp

You should set it to some existing writable directory - /tmp, c:/tmp  and restart the web server. upload_tmp_dir = 0 is invalid and should cause upload failure in any PHP script unless this setting is somehow overriden in .htaccess file or ini_set().

Can i modify Xinha, so that Xinha use the postnuke tmp_dir?

Xinha fetches the configuration directly from the PHP engine - postnuke either sets some configuration entries by itself using ini_set() function or e.g. uses .htaccess file to set these configuration entries. I'm not familiar with postnuke code, so I can't help you with that. In general - of course you can modify Xinha the way you see fit - it's open source.

Offline

#7 2006-09-29 10:08:47

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Upload problem with EFM 1.1.1

Standard setting for upload_tmp_dir is NULL. php then uses the servers standard tmp directory

upload_tmp_dir  string

    The temporary directory used for storing files when doing file upload. Must be writable by whatever user PHP is running as. If not specified PHP will use the system's default.

from http://www.php.net/manual/en/ini.core.php

Offline

#8 2006-09-30 02:25:52

hilope
Xinha Community Member
Registered: 2006-06-06
Posts: 26
Website

Re: Upload problem with EFM 1.1.1

On a local server try to set upload_tmp_dir to a writable directory (set absolute path).

If your server is hosted you have to call your provider in order to correct this. Perhaps you can set this in your .htaccess (but i think you have no rights to do this ...)

Perhaps you can try this with a php.ini in your servers root?!

Last edited by hilope (2006-09-30 02:27:33)

Offline

#9 2006-11-16 06:29:47

mkknot
New member
Registered: 2006-10-25
Posts: 7

Re: Upload problem with EFM 1.1.1

i have the same problem ... my application work on the local server but not on the distant server ... 

I can remove directory, the thumbs of images work but i can't upload a file ...

Offline

Board footer

Powered by FluxBB