Question
The
TwikiManual says to use FTP to upload large files. I have several large files around 50mb that I want to attach. Where do I put them when I ftp? Once they are in the right directory, how do I tell the TWiki Page that I have uploaded something. I only know how to attach by clicking on the "attach" link then browsing to the file and clicking the "upload" button.
- TWiki version: Latest
- Perl version: 5.6
- Web server & version: Apache
- Server OS: Solaris
- Web browser & version: Netscape 4.7
- Client OS: Solaris
--
TWikiGuest - 17 Mar 2003
Answer
I'll start an answer -- someone can correct it as appropriate.
I thought I should be able to figure it out -- I got partway but don't know how to create the "upload table".
In general, attachments are stored somewhere under a TWiki file hierarchy -- I can't recite the upper levels, but at the lower levels it's like .../pub/<web_name>/<topic_name> so that's where you want to upload the files. (Are you the administrator -- you should be able to find the early part of the path -- if not ask the administrator.
Here's a sample link for an uploaded logo:
<br /> <img src="%ATTACHURLPATH%/CFK_Logo.gif" alt="CFK_Logo.gif" align="right" width="238" height="220" />
You can use that as a model, or really, just the "%ATTACHURLPATH%/CFK_Logo.gif" should be the link.
Aside: Note that %ATTACHURLPATH% expands to /p/pub/Support/LargeFileUpload (on twiki.org) -- this is not the full path on twiki.org, but, in my own (possibly misleading words) the path from the "Apache root".
Sorry, I don't know how to get the link into the table if you upload it via ftp.
You could also just upload the file in the normal way -- the 50 KB restriction, at least on twiki.org, is not a technical restriction but just a practical one related to the amount of storage space available.
--
RandyKramer - 18 Mar 2003
It depends on how important getting the filename into a table is, but you could consider uploading the file to ~/public_html. Then add a link on the page like
http://your.server/~username/bigfile.tar.gz
. Its possible to automatically update your page if you put a file in that specified directory. You could use a plugin (which one?), or a cron job.
--
FrancisLiu - 18 Mar 2003
See also
TWikiAlphaRelease - there's a plugin used to generate a table on that page from a directory that could be populated directly by FTP.
--
RichardDonkin - 24 Mar 2003