Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-05-14 12:41:37

hugo_rune
New Member
Registered: 2007-05-14
Posts: 4

"how do I"... allow file overwriting?

Hi all. Firstly, a brief thank you to the developers of Textpattern – it’s brilliant and I’ve had a lovely few weeks moving all my nightmarish sites from Joomla to the much nicer TXP. Well done all!

But (there is always a but isn’t there? :) can anyone tell me how I can allow overwriting of uploaded files? e.g. On one site I’ve created my client has uploaded about a hundred pdffiles for download. Now, to make his life easier I’d like to give him the ability to re-upload any modified files he has and this way he won’t have to give the file a new description or delete the old one etc.

At the moment my client will modify his file(s) and then upload them from the TXP admin area – but we’re getting “File XXXXXX.pdf already exists” messages which means that my client will have to delete the existing file and re-upload the modified version. Unfortunatly this also screws up some of his hard-coded links to individual files.

So, to end this rambling post – is there any way to allow txp to simply overwrite files when uploading?

thanks in advance,

hugo

Offline

#2 2007-05-14 13:19:19

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,538
Website GitHub Twitter

Re: "how do I"... allow file overwriting?

You haven’t too much solutions:

change the name of the new files that can be uploaded like a new one

or delete the file (by ftp) before re uploading it

I had the same pb when tried to upload a huge file (3Mo), the upload file don’t upload more than 2Mo, then I decided to upload an empty file with the same name using txp upload file, and after that try to upload the real file using ftp, but the ftp can’t overrid the old file (because it s not the same owner) then i just deleted the old one befor uploading the newesr using ftp!

Offline

#3 2007-05-14 13:44:17

Christopher
Member
From: T.O.
Registered: 2004-05-27
Posts: 42
Website

Re: "how do I"... allow file overwriting?

Actually, there is a plugin that will allow you to do this: cno_replace_file

Much easier :-)

Offline

#4 2007-05-14 14:33:32

hugo_rune
New Member
Registered: 2007-05-14
Posts: 4

Re: "how do I"... allow file overwriting?

Thanks Christopher, that looks like just the solution!

Now if I could only find a plugin that writes content, invoices clients and answers the phone :)

Cheers
hugo

Offline

#5 2007-05-14 21:40:41

Christopher
Member
From: T.O.
Registered: 2004-05-27
Posts: 42
Website

Re: "how do I"... allow file overwriting?

hugo_rune wrote:

Now if I could only find a plugin that writes content, invoices clients and answers the phone :)

Ha! Yeah, that would be a good one :-)

Offline

Board footer

Powered by FluxBB