Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2009-06-03 13:37:34
- feytus
- Member
- Registered: 2009-06-02
- Posts: 43
Can I upload files via FTP?
Hey people! I’m building a record label site at the moment around textpattern, it’s a free music label, so I’m putting all releases out for free. Hence; I need to upload some quite big files (the biggest at the moment around 140 mb), which takes forever with the built in uploader-thing. Is there a way for me to just upload the files to the server via FTP and identify it in textpattern later, or should I just ignore the filesystem in textpattern, upload manually via FTP and just link to it as any normal link? What benefits does using the textpattern file-system have?
Thanks! :)
Offline
#2 2009-06-03 13:53:02
- gerhard01
- Plugin Author
- Registered: 2006-12-07
- Posts: 108
Re: Can I upload files via FTP?
just upload the files to the server via FTP and identify it in textpattern later
Yes – just do this.
Offline
Re: Can I upload files via FTP?
feytus wrote:
I’m building a record label site at the moment around textpattern
I’ve done this too so I feel your upload pain :-)
Is there a way for me to just upload the files to the server via FTP and identify it in textpattern later
Yes, exactly that. Upload via FTP to the /files
directory then visit the Files tab in TXP. You’ll see an ‘existing files’ dropdown, select your file and click the button. That’ll insert the file details into the TXP database and link to it.
EDIT: gerhard01 was faster
or should I just ignore the filesystem in textpattern
Funny you should mention this. I wrote a plugin called smd_remote_file (in the process of being revamped, btw) which allows you to upload files to 3rd party ‘free’ file hosting services like fileden.com. The deal is, you open up an account, upload a tonne of files to it then use smd_remote_file from TXP’s Files tab to give the URL of the file on the 3rd party site(s). It grabs the file info and stores it in TXP. The benefit? You use the existing TXP tags to manage all your downloads but you use their bandwidth and not yours :-) (subject to the usage limits of your chosen provider of course)
Last edited by Bloke (2009-06-03 13:56:44)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#4 2009-06-03 14:34:25
- feytus
- Member
- Registered: 2009-06-02
- Posts: 43
Re: Can I upload files via FTP?
Wow, that sound sweet! I didn’t even know about fileden. Thanks so much for the info, guys, much appreciated. :) Will check out your plugin at some point, Bloke! Sounds pretty genius. When do you think you have the revamped version ready? And what’s the URL to the label-site you made? Would be nice to see how someone else did it. :)
Offline
Re: Can I upload files via FTP?
feytus wrote:
When do you think you have the revamped version ready?
I was hoping to have it done this week but I’ve hit a snag or two. I think I might roll back a few edits and make the plugin a ‘lite’ version of what I had originally planned, as the full-blown thing is going to require some serious extra-curricular code that I don’t have time to write at the moment. I’ll let you know if I get anywhere any time soon.
And what’s the URL to the label-site you made?
Still in a bit of disarray unfortunately. My priorities have shifted somewhat of late, and I only half finished updating the site…
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#6 2009-06-03 15:23:09
- feytus
- Member
- Registered: 2009-06-02
- Posts: 43
Re: Can I upload files via FTP?
Cool, would be nice to have that plugin. :) I quite like your site (not really into the colors, but oh well), easy to find stuff on it. Will check back on it every now and then to see how you’ve done a few things. Thanks again, man. :)
Offline
Re: Can I upload files via FTP?
feytus wrote:
Cool, would be nice to have that plugin. :)
Well it works ok now, it will just work better when I’ve finished tinkering :-)
Will check back on it every now and then to see how you’ve done a few things.
By all means. I doubt the site will be updated any time soon but as a general concept feel free to study it for clues on how not to make a site! Some of the file_download links go off to remote servers I think…
Last edited by Bloke (2009-06-03 15:46:03)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#8 2013-01-21 10:12:26
- gour
- Member
- From: Hlapičina, Croatia
- Registered: 2013-01-17
- Posts: 124
Re: Can I upload files via FTP?
Bloke wrote:
Yes, exactly that. Upload via FTP to the
/files
directory then visit the Files tab in TXP. You’ll see an ‘existing files’ dropdown, select your file and click the button. That’ll insert the file details into the TXP database and link to it.
EDIT: gerhard01 was faster
Just to say THANK YOU to both of you.
Was looking for some plugin to allow creating entries for the files which are already scp-ed to my server, but most seems to be outdated, while this built-in feature is ‘just perfect’. :-)
Offline
Pages: 1