Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-02-22 15:53:29

dbulli
Member
Registered: 2004-11-22
Posts: 195
Website

Replace file ... like replace image...

I swear it used to be there, but right now I have to FTP to change the uploaded file… there is an option to replace image…


nuff-respec ::: dannyb

Offline

#2 2007-02-22 17:00:10

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Replace file ... like replace image...

You don’t need to “replace file” just make sure it has the same file name+extension, and overwrite it.

Last edited by Mary (2007-02-22 17:00:22)

Offline

#3 2007-02-22 17:04:30

dbulli
Member
Registered: 2004-11-22
Posts: 195
Website

Re: Replace file ... like replace image...

Hmm … if I try to do that i get the message “File trikoogle.zip already exists.”


nuff-respec ::: dannyb

Offline

#4 2007-02-22 17:23:03

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Replace file ... like replace image...

Offline

#5 2007-02-22 17:26:17

dbulli
Member
Registered: 2004-11-22
Posts: 195
Website

Re: Replace file ... like replace image...

THANKS … probably should be integrated into future versions, i view it as VERY BROKEN behavior … i really thought it was there before…


nuff-respec ::: dannyb

Offline

#6 2007-02-22 21:16:11

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Replace file ... like replace image...

Sure: send a patch.


Alex

Offline

#7 2007-02-22 21:54:53

dbulli
Member
Registered: 2004-11-22
Posts: 195
Website

Re: Replace file ... like replace image...

I really swear it was there before … and looking briefly on the source it seems like the functionality already exist and it’s a quick fix: In the current version 4.0.4 … i added just two lines to get it to work

/include/txp_file.php

around line#: 326 i added these two lines ..before form( … and from the edit screen you can now replace…

hed(gTxt('file_relink'),3).
file_upload_form(gTxt('upload_file'),'upload','file_replace',$id).


nuff-respec ::: dannyb

Offline

#8 2007-02-24 01:15:23

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Replace file ... like replace image...

Hmm … if I try to do that i get the message “File trikoogle.zip already exists.”

Sorry, I misunderstood what you were asking for, causing my answer to be misunderstood. :D

Offline

#9 2007-07-18 21:09:25

dbulli
Member
Registered: 2004-11-22
Posts: 195
Website

Re: Replace file ... like replace image...


nuff-respec ::: dannyb

Offline

Board footer

Powered by FluxBB