|
Edit Links |
Site /
AboutUploading
<< WikiStyles | Page list | PmWiki.UploadQuickReference? >> Help about uploading filesThe only way to upload files to this site is by using the file manager as described further down. Note that method to upload files described on the page PmWiki.Uploads does not work at this site. Related links
This page contains the following sections: PasswordsUploading a file requires that you specify a username ( How to upload a fileYou can use the file manager to upload files. Just use the upload-link at the top right corner, which takes you to this address: where you have to login using the username and password given above. Please note that you need to have both JavaScript and cookies enabled for this to work. Then use the file manager to navigate to the directory in which you wish to upload the file(s), or optionally create a new directory. Finally you upload the files... Caveat: There have been reports that you must use the form for uploading multiple files in order for the uploads to work properly. How to link to an uploaded fileAll uploaded files, for all fields, are stored under a directory called
uploads/Site/aboutUploading/anUploadedFile.txt should be done using this markup: uploads:/Site/aboutUploading/anUploadedFile.txt Please avoid linking to files by writing the URI explicitly. Instead, use
the prefix Please also verify that links you create work properly, i.e. click on them to see that they work and that they point to the correct file (in case you accidentally made a spelling error). Where should I store a file, i.e. what path?You can store files anywhere in the Note that lower case was used for the first letter to separate it from the name of this page. In this case, the file can thus be found at this location: uploads:/Site/aboutUploading/anUploadedFile.txt In some cases, e.g. when several files belong together but the topic is still general, it even makes sense to use an additional subdirectory. Here is an example: You have several files that make up a tutorial for using LyX that you want to upload. Now, tutorials are listed on the page LyX.Tutorials, so for a single file, myTutorial.pdf, a reasonable path would be uploads/LyX/tutorials/myTutorial.pdf. In your case however, it makes more sense to upload your files to a new subdirectory, for instance: uploads/LyX/tutorials/myTutorial/.
Also see the page about adding material. Allowed file typesMost file types may be uploaded. If you have problems uploading a file and suspect this to be a problem, ask about it on the developer's list. Allowed file sizesThe size of a file that can be uploaded is limited to 1 MB regardless of the extension. If you think that certain file extensions should be allowed to be bigger, send a mail to the developers list. Note: Because of a configuration issue with the web-server, the practical limit for uploading files is 512kB. Uploading large filesUnless you are a developer (see the secton below), it is not possible for you to upload large files. Please one of the following methods in this case:
Manually uploading files — only for developersFiles larger than the limit can be uploaded by developers with access but it is more complicated and requires some tricks in order to achieve the correct permissions. Here's the correct permissions of a typical directory: [chr@aussie.lyx.org ~]$ cd /home/lyx/www/pmwiki/uploads; ls -ld Windows/ drwxrwsr-x 10 apache wiki 4096 12 jul 23.44 Windows notice the sticky group bit "s". Here's the correct permissions for a file -rwxrwxr-x 1 apache wiki 57917 15 apr 22.00 Windows/lyxwin.png
Creating a directory with correct permissionsUse the file manager to create directories... it's annoying and
slow compared to Uploading a file with correct permissionsFirst use the file manager to upload a dummy file with the name of the new file that you wish to upload. Instead of uploading the file, you can simply use the file manager to create it as a text file. Then simply copy the file to it's proper location. The overwritten file will now contain the correct permissions. scp file user@aussie.lyx.org:/home/lyx/www/pmwiki/uploads/path/file
As far as I know, uploading many files requires you to first create each file separately using the file manager. You could simply upload a compressed archive instead. chr Verifying the permissionsWhenever you have manually fiddled with uploaded files, please verify that
you have not changed ownership improperly by executing the following commands
on
cd /home/lyx/www/pmwiki/uploads
find /home/lyx/www/pmwiki/uploads -not -type l -not -user apache -exec ls -ld {} \;
find /home/lyx/www/pmwiki/uploads -not -type l -not -group wiki -exec ls -ld {} \;
General tips
Q: What format should I use for an archive? On Unix/Linux,
My (Christian) conclusion is that
bzip2 wins. Anyway, my recommendation is that you should try to use bzip2 for archives. For a single document, PDF is probably more convenient for normal users.
|