PDA

View Full Version : Photo editor: Upload (and replace with) file... (NOT A BUG)


devenh
28th of November 2006 (Tue), 11:13
Don't know if this is a bug or perhaps I'm doing something wrong.

I run Retrieve Photo Sizes and I get several photos that fail to be updated usually because the jpg is missing. A list of problem photos is shown on the Batch Report with links to the Photo Editor. I click on the Photo Editor link and then I use the "Upload (and replace with) file..." edit box to find a copy of the missing jpg on my local hard drive.

At this point it is not really clear what to do next. I assume that clicking the "Save changes to size paths" button is the correct thing to press, but all I get is a blank screen that never refreshes.

Deven

wkitty42
28th of November 2006 (Tue), 20:15
you are correct in that clicking on that button does perform the upload and replacement... however, i can't answer the blank screen problem other than to say that it is indicative, generally, of failed or bad code... i can say that this function does work as desired on my system... what doesn't work for me is the rethumbnail stuff but i've not had any time to dig into it and figure out why...

devenh
29th of November 2006 (Wed), 01:06
Okay, I suspect the problem I'm having is related to some buffering issues that Pekka is investigating.

Deven

Pekka
29th of November 2006 (Wed), 05:51
With FTP, check that all ftp servers use method "upload in one go". The slice method has bugs which makes it fail on some servers, and some servers are plain incompatible with it.
Deven, Can I go to your admin to check it out (I have the old login info)?

devenh
29th of November 2006 (Wed), 10:53
Pekka,

The ftp server was set to "Upload in one go."

Yes, you may login and check.

Thanks,

Deven

Pekka
30th of November 2006 (Thu), 09:06
Deven, you problem happens because you have not set up ftp server and path for the size path you are sending the image to.

In other words: In photo editor, when you use "Upload (and replace with) file.." feature, it will fail if it can not reach the size path with ftp. You got blank page because the ftp server did not connect at all. For most ftp servers you do not get blank page, but if you do you can always check messages afterwards and see what was the cause.


PS. If you do not want to add ftp into for that size path (in path editor), you can alternatively change the size path (before using "Upload (and replace with) file...") to something that has ftp info set, providing that it does not break you personal path logic. EE does not "care" where the photo is, physically.

PPS. I tested a bugfix for the chunked ftp upload on your server and it works now. Only couple of things more and 2.02 is ready.

wkitty42
2nd of December 2006 (Sat), 14:06
PPS. I tested a bugfix for the chunked ftp upload on your server and it works now. Only couple of things more and 2.02 is ready.
hopefully this also includes browser differentiation code so that IE's less than 7 do not get that xml header line?? i found that another individual that had reported that bug was using IE5 (!)... my IE6 on w98se worked with no problems but IE6 on XP was reported to not work...

of course this belongs over in that other thread but i just thought i'd take the oppurtunity to ask about that particular bugglet...

devenh
4th of December 2006 (Mon), 00:48
Pekka,

I am still not able to get it to work.

I am trying to replace a file with a copy from my desktop system. The path id on the server is #19 which has a URL and FTP Server FTP Folder defined in the Size Path Editor.

Is there something on the FTP server page I need to configure?

Thanks,

Deven

devenh
3rd of January 2007 (Wed), 10:29
Pekka,

I am still trying to get this to work and want to make sure it is not something I am doing wrong. Here is a screen shot of the Size Paths form:

http://home.pacbell.net/devenh/images/SizePaths.jpg

I've drawn three numbers on the screenshot:

#1: You can see that this file is not on the server as it has a filesize of zero.

#2: I enter the replacement filename in the edit box.

#3: I press the "Save changes to size paths" button.

Nothing happens at this point. I checked the System Messages and there are none. The path being used I believe is correctly defined in the Size Path Editor:

http://home.pacbell.net/devenh/images/SizePathEditor.jpg

I don't know if this will help, but I am able to specify a local file in Step #3 of the "Upload to Database" page, so that EE upload feature does work on my system.

Deven