Announcement

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

#1 2006-04-18 08:55:17

chris28
New member
Registered: 2005-08-31
Posts: 5

ImageManager Upload problem

Hi,

I use Xinha and ImageManager Plugin with IIS.
When i upload an image, i've no error but image isn't really uploaded in directory "Images". But if i place manually the image in this directory, i could edit, save and erase it in xinha without problem (and i could create subdirectory). How can i resolve this problem ? Thanks.

Offline

#2 2006-04-18 13:41:32

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

Re: ImageManager Upload problem

Is the php directive file_uploads on?

Offline

#3 2006-04-19 03:06:19

chris28
New member
Registered: 2005-08-31
Posts: 5

Re: ImageManager Upload problem

Yes, I have in php.ini :

;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir =

; Maximum allowed size for uploaded files.
upload_max_filesize = 2M

Offline

#4 2006-04-20 11:09:12

Chuck
Xinha Community Member
Registered: 2005-02-25
Posts: 29

Re: ImageManager Upload problem

Yep, I have the same issue here, I can do whatever I want once I "manually" place the pictures in my folder but I can't upload them with ImageManager. I've searched on my hardrive for the file ( in case it was put elsewhere ) and there's no trace of the uploaded file either.

The thing is running php5 + iis5 + asp.net 1.x

Thanks in advance

Offline

#5 2006-04-20 11:12:58

Chuck
Xinha Community Member
Registered: 2005-02-25
Posts: 29

Re: ImageManager Upload problem

Ah... one more thing in case it might shed some light : I'm running this server on port 81 in a virtual directory, as such, the base url is something like 127.0.0.1:81/myapp/

Offline

#6 2006-04-21 04:54:45

chris28
New member
Registered: 2005-08-31
Posts: 5

Re: ImageManager Upload problem

I've tried some modifications like indicate in this link :
http://www.aspplayground.net/forum/m_376095/tm.htm
but i have always same problem.
I think it should be a permission problem on upload folder but which ?

Offline

#7 2006-09-13 16:42:28

louDogg
New member
Registered: 2006-08-23
Posts: 9

Re: ImageManager Upload problem

I'm also having problems with the ImageManager.  There is not a place to save the image once I have made changes to it.  I can get to the save menu but once I'm there I can't save the image.  Has there been any update to the ImageManager that needs to be downloaded?
Thanks for your time

Last edited by louDogg (2006-09-13 17:01:32)

Offline

#8 2006-09-13 17:06:47

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

Re: ImageManager Upload problem

The newest version of ImageManager plugin is always in the nightly build, you can check the last changes to the plugin here, but as far as I know none of the changes from last few months is related to permissions problems.

In general, to be able to save images, you need to have write permissions to the relevant image directory.  (images_dir config variable). You also need to be able to create subdirectories. Additionally, if you want to upload new files, you need to make sure that PHP is correctly setup - temp directory is writable, file uploads enabled, relevant size limit etc.

I don't unfortunately know how to manage permissions in IIS, if that is your case.

If you are still having problems, please respond with your configuration and the specific steps needed to reproduce the error

Cheers,
Chris Kotowicz

Offline

#9 2006-09-15 16:13:34

louDogg
New member
Registered: 2006-08-23
Posts: 9

Re: ImageManager Upload problem

I'm sorry uploading images work great, I was in the wrong directory.  My true problem is that when I crop an image I am unable to save the changes.  I did a little looking around in the script and found out that the save button is there, but because the file name field and all the other fields in the "save menu" tool bar are to big and hides the save and cancle buttons.  I can see the save button if I make the font in my browser(fire fox) smaller.  I think the problem is in the JavaScript or the CSS file.  Is there a quick fix to make the image editor window bigger?

Last edited by louDogg (2006-09-15 16:49:06)

Offline

#10 2006-09-15 17:28:25

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

Re: ImageManager Upload problem

louDogg wrote:

I'm sorry uploading images work great, I was in the wrong directory.  My true problem is that when I crop an image I am unable to save the changes.  I did a little looking around in the script and found out that the save button is there, but because the file name field and all the other fields in the "save menu" tool bar are to big and hides the save and cancle buttons.  I can see the save button if I make the font in my browser(fire fox) smaller.  I think the problem is in the JavaScript or the CSS file.  Is there a quick fix to make the image editor window bigger?

Weird, i'll look into that, but i'm also using FF browser and the edit window always was big enough to show every button.

Edit: I checked it, and it certainly works for me. Could you please post a screenshot of the editing window? How does this window look in IE?

Last edited by koto (2006-09-16 13:13:38)

Offline

#11 2006-09-18 09:29:49

louDogg
New member
Registered: 2006-08-23
Posts: 9

Re: ImageManager Upload problem

The save and cancel buttons do show up in IE.  Also the save and cancel buttons does not show up on my friends and my ff.  You can view the screen shot here http://www.arshrm.com/new_site/images/picture.png

Last edited by louDogg (2006-09-18 09:30:42)

Offline

#12 2006-09-18 11:00:28

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

Re: ImageManager Upload problem

Ok, the font used in this image seems wider than on my display, hence the button does not fit.

Could you look what font is being used in the top bar in this window? It should be Tahoma 11px. You could easily check it with webdeveloper extension (Crtl-Shift-F) or DOM inspector (Ctrl-Shift-I). The font is defined in plugins/ExtendedFileManager/assets/editor.css

It looks as if your system renders Verdana, which is a bit widers than Tahoma. Try to compare the fonts in some text editor so that we are sure this is the case. Do you have Tahoma font installed? Is it installed by default on Mac coputers? And your firends - do they also use Mac computers?

Offline

#13 2006-09-18 11:37:17

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

Re: ImageManager Upload problem

I think neither Verdana nor Tahoma are available by default on macs (they are original MS fonts).

Also the input field is much wider, it had better have a width assigned to rule browser differences out.

May be it would fit more secure if the fields were in a table, not a div

Offline

#14 2006-09-18 12:10:03

louDogg
New member
Registered: 2006-08-23
Posts: 9

Re: ImageManager Upload problem

My computer did not have Tahoma.  Once I installed it I could see the save and cancel buttons just fine.  Thanks for your quick response.  Is there a way to make the buttons show if a computer doesn't have Tahoma and not having to changing the font size.

Offline

#15 2006-09-18 16:13:24

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

Re: ImageManager Upload problem

ray wrote:

Also the input field is much wider, it had better have a width assigned to rule browser differences out.

I narrowed it down to 115px - (was 117px in my browser) but can't test if it solves the problem on macs.
Still - if we can't have Tahoma equivalent on macs - we're facing an alternative to narrow everything for all users so that those without Tahoma don't miss anything from the interface.

I am strongly against converting to tables, but if the narrowing the input field does not leave enough space,
i'll look into the CSS file to get the nessesary space (maybe in separators or quality slider).

louDogg, could you change the editor.css file temporarily like this (add it to the bottom of the file):

body
        {
            margin: 0; padding: 0;
            font: 11px Verdana,sans-serif;
        }
                #save_filename {width: 115px;}

and tell us if everything fits correctly for you after this changes?

Offline

#16 2006-09-18 18:46:17

louDogg
New member
Registered: 2006-08-23
Posts: 9

Re: ImageManager Upload problem

I entered in your code into the css file and took out Tahoma. This was what I got at first. http://www.arshrm.com/new_site/images/picture.png This was close but to make it work I set the #save_filename to
#save_filename{ width: 100px}
and got this result. http://www.arshrm.com/new_site/images/picture1.png  I hope this helps

Last edited by louDogg (2006-09-18 18:48:27)

Offline

#17 2006-09-25 09:42:31

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

Re: ImageManager Upload problem

Thanks louDogg, the change is now commited to the codebase: http://xinha.python-hosting.com/changeset/588

Offline

Board footer

Powered by FluxBB