PDA

View Full Version : Replace file after upload is finished


MartinXP
06-27-2010, 07:18 PM
On upload FlashFXP deletes the existing file and then starts writing the new file.

I have this problem: I update a big php file very often, and while the file is uploaded the website returns an error (since the php file is incomplete while for a short time).

Is there a setting to avoid this?

I could rename > upload > delete original > rename new file. But that's annoying, esp. multiple times per day.

I use Version 3.2 from 2005 tho.

MxxCon
06-27-2010, 08:50 PM
how big is your file or how slow is your connection that this makes a difference?!
if you can, enable compression during transfer, that will make your transfer go faster.

BUY FLASHFXP!

MartinXP
06-27-2010, 09:15 PM
The file is 350 KB (and growing) and it takes 2 seconds which DO make a difference since no error message should be returned EVER for such a stupid bug.

Compression (Mode Z) is enabled for uploads.
The manual rename "solution" wouldn't be much faster tho.

MxxCon
06-27-2010, 10:32 PM
if you get so much traffic and you can't afford 2 seconds it takes to upload a file, setup a separate development environment, do all your coding and testing there and then deploy your code when you are ready.
or setup 2 web servers in a load balanced config, and when take out one server at a time from your cluster to push your code.

you've been using FlashFXP since at least 2005, for what appears to be a business purpose and you can't afford $25 for a lifetime license?

there's another way to rename files which is much faster than manual.