mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2024-11-22 15:21:55 +00:00
196 lines
15 KiB
HTML
196 lines
15 KiB
HTML
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<title>CUCC Expedition Handbook: Uploading files/photos</title>
|
|
<link rel="stylesheet" type="text/css" href="../css/main2.css" />
|
|
</head>
|
|
<body>
|
|
<h2 id="tophead">CUCC Expedition Handbook</h2>
|
|
<h1>Uploading Photos</h1>
|
|
|
|
<h2>The end-result you are trying to achieve</h2>
|
|
What you are trying to do is to get your happy holiday snaps appear <i>properly indexed</i> with all the others from the previous decades of expo history. You can see them all here: <br /> <a
|
|
href="http://expo.survex.com/photos/">http://expo.survex.com/photos/</a><br />
|
|
which is the end result. But all you have to do is to upload the photos to the right place.
|
|
A hidden script does the hard work to make it all look nice after the upload.
|
|
|
|
<p>If you are a beginner you can use the initial simple method below (using /uploads/ )
|
|
for the photos you have taken of cave entrances for cave survey and prospecting purposes.
|
|
|
|
<p>If you are looking for how to upload a GPS track, those instructions have <a href="gpxupload.html">been moved to here</a>.
|
|
|
|
<h3>Names for your photo files and folders</h3>
|
|
<p>Please use lower-case for all filenames.
|
|
<p>Please
|
|
rename the filenames of the photos intelligently to e.g. "big-hole-near-path-to-fgh.jpg", or
|
|
"2018-ad-07-entrance3.jpg" rather than "DSC31415926.jpg" or whatever your camera app produces. Please explain by email to an admin/nerd what you have done, where you have put them and how you have renamed files.
|
|
|
|
<p>Please don't upload lots of near-duplicate photos: cull them first to just the good ones. We don't want any that are out of focus either.
|
|
|
|
<p>When copying many files put them into a new folder which identifies you personally.
|
|
When you copy the files create your own folder with your name like this: <span style="font-family: monospace">/YourName/</span> and put your files into that folder. "YourName" should have no spaces, hyphens or underline characters (CamelCase).
|
|
|
|
<h2>Simple instructions</h2>
|
|
|
|
<ol>
|
|
<li>If you only have a photo or two just email or message them to someone who knows how to do it. <br>
|
|
If you are doing more than a few photos, email will be clunky, so do this:
|
|
<li>Copy the photo files from your phone to the <i>expo laptop</i> in the tatty hut using a USB cable.<br> See <a href="#android">phone app</a> if you do not know how to copy files from your phone.
|
|
<li>Rename the filenames of the photos to something descriptive (see para above).
|
|
<li>After copying your files to the <i>expo laptop</i> into the /uploads/ folder tell a nerd that you have done it.
|
|
</ol>
|
|
<p><b>Complete beginners</b> should always put all their files into their own folder within the folder <b>/home/expo/expofiles/uploads/</b> on the <a href="computer.html"><i>expo laptop</i></a> and ask an experienced user to move them to the right place later.
|
|
|
|
<p>If you want to use your photos in a blog (see below) tell an experienced user which and they will copy a lower-resolution version to the appropriate place.
|
|
|
|
<p>That's it, you're done.
|
|
|
|
<h2>Using uploaded photos in blogs</h2>
|
|
<p>The <a href="https://ukcaving.com/board/index.php?topic=25195.msg310908#msg310908">UK Caving blog</a> requires that
|
|
photos in it are actually hosted elsewhere. This needs to be a permanent place so
|
|
that the blogs can be read in years to come. Imgur, Flikr or Instagram are OK though not ideal (expo has its own Instagram account) but
|
|
your personal GoogleDocs or GooglePhotos stash definitely is not.
|
|
Preferably
|
|
they should be put on the expo server e.g. 2018 blog photos are permanently archived on <a href="http://expo.survex.com/expofiles/photos/2018/BlogPostPhotos/">expo.survex.com<b>/expofiles/</b>photos/2018/BlogPostPhotos/</a> in the published resolution.
|
|
|
|
|
|
<h2 id="experienced">Experienced users</h2>
|
|
<p>OK the admin/nerd you have been asking to move the files to the right place on the <i>expo laptop</i> is getting fed up and now wants you to put the uploaded photos in the right place yourself and not just in /uploads/. This is where they go:
|
|
|
|
<pre>
|
|
directory: /home/expo/expofiles/<b>photos</b>/2019/YourName/
|
|
</pre>
|
|
or, for GPS logs (GPX files):
|
|
<pre>
|
|
directory: /home/expo/expofiles/<b>gpslogs</b>/2019/YourName/
|
|
</pre>
|
|
<p>Obviously replace /2019/ with the current year. This is the expo year the photos are taken, so if you are uploading a previous years' photos which you never got around to uploading you will use /2018/ or whatever.
|
|
<p>Obviously replace 'YourName' with your actual name (no spaces!).
|
|
It is important that you get this right as this specific way of writing
|
|
your name is standardised across the website
|
|
(this is known as "<a href="https://en.wikipedia.org/wiki/Camel_case">CamelCase</a>").
|
|
<p style="margin-left:20px">This is the only place in the whole system
|
|
that you should use some capital letters. Absolutely everywhere else you should use
|
|
only lower-case letters, no spaces, and hyphens (not underlines) when creating filenames, folder names or variable names of any sort.
|
|
<p>
|
|
Use the year that the photo was taken or the GPStrack logged.</p>
|
|
|
|
|
|
<h3 id="init">Uploading files from the <i>expo laptop</i></h3>
|
|
<p>Always learn how to <i>use</i> the system first on the <i>expo laptop</i> before trying to do it with your own machine.
|
|
<p>OK the files have been put into the correct place on the laptop by an experienced user and now you need to copy them to the server. Don't worry about deleting them from the <i>expo laptop</i> after copying as we can do that clean-up at the end of expo. In fact <i>don't</i> delete them from /uploads/ on the <i>expo laptop</i>.
|
|
|
|
<p>The expo server has a big section under 'home/expo/expofiles/' that is <b>not under version control</b>. This is dangerous as there is no backup. If you overwrite some important files with holiday snaps then we are in big trouble.
|
|
|
|
<p>This is where we store big files that we don't want to keep multiple versions of which is why it is not under verson control.
|
|
|
|
<p>This is why we do not want beginners directly uploading photos to the server but to just put them on the <i>expo laptop</i> instead.
|
|
|
|
<p>So assuming that you have the photos on the laptop in directory:
|
|
<pre>
|
|
/home/expo/expofiles/photos/2019/YourName/
|
|
</pre>
|
|
you are going to be copying them to directory:
|
|
<pre>
|
|
/home/expo/expofiles/photos/2019/YourName/
|
|
</pre>
|
|
on the server.<img src="https://wiki.filezilla-project.org/favicon.ico" width=64 margin =10 align=right>
|
|
|
|
<p>
|
|
|
|
<ul>
|
|
<li>Start up Filezilla - click on red "Fz" logo in the application favourites bar on the laptop desktop.
|
|
<li>Click on the "Bookmarks" menu item:
|
|
<ul>
|
|
<li>At the bottom of the "Bookmarks" drop-down menu you may see "expo-uploads";
|
|
if so, click on it.
|
|
<li>If you can't see "expo-uploads" in that menu
|
|
(because this is temporarily broken in version 3.28 of Filezilla),
|
|
click on the "File" menu item and select "Site Manager...".
|
|
This will display a tree-structured menu in a sub-window and one of the items will be "expo-uploads". Highlight it
|
|
and then click on the "Connect" button at the bottom of the sub-window.
|
|
</ul>
|
|
|
|
<li>If this is the first time it is used this expo you will now be prompted for the password for the expo server. This is the "cavey:beery" one which we never write down or write in emails. Get it verbally or by phone or secure text message from another expoer.
|
|
</ul>
|
|
<p>Now you are in and can copy and move files anywhere. But please stick to copying files from your machine (the left window) to the server (the right window) into the /uploads/, /photos/ or /gpslogs/ folders only:<br><br>
|
|
|
|
<a href="fzexample.png" border=2><img src="fzexample.png" align=center width=65%></a><br>(Click to enlarge).
|
|
|
|
<p><img src="https://wiki.filezilla-project.org/favicon.ico" width=64 style="float:right; margin: 10px">For installing and pre-configuring Filezilla on a new machine see <a href="fzconfig.html">FileZilla install instructions</a> which will set you up pointing at the correct folder automatically. But <em>none of this will work</em> on new machine until you have also done the <a href="computing/keyexchange.html">key-pair setup</a> procedure.
|
|
|
|
<h3>Automated magic</h3>
|
|
<p>Note that uploading photos does not automatically update the view
|
|
at <a href="http://expo.survex.com/photos/">http://expo.survex.com/photos/</a> immediately. An update script needs to be run. This should run automatically once/day around midnight UTC (2017 and earlier) or a couple of minutes after you do the upload to the right place (2018 if Wookey gets this sorted out in time) but may be broken. Prod a web admin if nothing is updated by the next morning..</p>
|
|
|
|
|
|
<h2>Expert instructions</h2>
|
|
<p>These have been moved to a separate page: <a href="upload-expert.html">expert upload instructions</a>.
|
|
|
|
|
|
<h2 id="morecomplex">Using your own laptop</h2>
|
|
<p>To use your own laptop on expo, or after you return from expo, you need need to use FTP. So become an <a href="#experienced">experienced user</a> first.
|
|
|
|
<p>You will need to know the expo password but <em>none of this will work</em> until you have also done the <a href="computing/keyexchange.html">key-pair setup</a> procedure.</p>
|
|
|
|
<p><img src="https://wiki.filezilla-project.org/favicon.ico" width=64 style="float:right; margin: 10px">To install and configure Filezilla on your machine see <a href="fzconfig.html">FileZilla install instructions</a> which will set you up pointing at the correct folder automatically.
|
|
|
|
|
|
<h2 id="android">Getting photo files from phones</h2>
|
|
<p>Phones are set up these daya to share photos via apps such as "Gallery" or "Google Photos" and most people never see the photo files explicitly. However you will need to see them in order to upload them.
|
|
|
|
<p>When plugged into a computer using a USB cable most laptops will offer the option to copy files as well as charge the phone. If your phone does this, then answer "yes" when that popup appears. The photos (and probably all your other media) will be copied to the laptop. Where it copies the files depends on your phone and you will have to sit at the laptop to find the folder it has put them into. (Note that some cheap USB cables are "power only" and won't do this with any phone.)
|
|
|
|
<p>If you use Google Photos or a similar app you can create an online album using the app and share it with your friends. Do this for your caving holiday snaps and cave entrance location photos and share them with an expo nerd who will download them the right place on the server. Be careful that you are sharing the full original resolution of the photos and not some cut-down compressed bastardized "enhanced" version of the photos.
|
|
|
|
|
|
<h2 id="android">Using an FTP app </h2>
|
|
<p>If you want to do it yourself and the USB cable trick does not work then you will need to install a file manager and FTP app. Currently (on Expo 2019) the best seems to be the free <a href="http://www.lysesoft.com/products/andftp/">andftp</a> app. Assuming you can find where your phone camera has put the photo files on your phone, you can use your phone to upload photos directly to the /uploads/ folder on the expo server. However renaming them to something sensible and putting them in your own <span style="font-family: monospace">/YourName/</span> folder (see above for file naming guidelines) is fiddly on a phone.
|
|
<p>To use the FTP app you will need:<img src="http://www.lysesoft.com/products/andftp/images/splash.jpg" width=128 style="float:right; margin: 10px">
|
|
<ol>
|
|
<li>The hostname of the server: <span style="font-family: monospace">expo.survex.com</span>
|
|
<li>the username: <span style="font-family: monospace">expo</span>
|
|
<li>the password: (the usual cavey:beery password which you can get verbally from another expoer)
|
|
<li>the target folder: <span style="font-family: monospace">/uploads/</span>, or it may appear as <span style="font-family: monospace">/expofiles/uploads/</span>
|
|
<li>the port number: 21 (if you leave this blank it will probably work)
|
|
</ol>
|
|
<p>But <em>none of this will work</em> until you have also done the <a href="computing/keyexchange.html">key-pair setup</a> procedure. On a phone this means that you will also need to install a terminal (command line) app. See <a href="computing/yourlaptop.html">your machine</a> instructions, the Android bits.
|
|
<ol>
|
|
<li>Install the <a href="http://www.lysesoft.com/products/andftp/">andftp</a> app onto your Android phone using the Google Play Store and allow it to access your files and photos on your phone (just click on the popup to do this).
|
|
<li>Click on the icon that looks like a "plus" synbol in a circle
|
|
<li>This opens a window with 3 tabs: General, Advanced and Sync
|
|
<li>On the General tab, type in the hostname, username and password as listed above.
|
|
<li>Also tick the checkbox "Enable resume support"
|
|
<li>Click OK to the two popups that appear
|
|
<li>You will now see an icon of a networked file folder (light blue) with the label "expo.survex.com". Click on it.
|
|
<li>Wait a while as it loads...
|
|
<li>Keep waiting. Various messages will scroll by at the bottom of the screen in tiny font.
|
|
<li>Keep waiting..
|
|
<li>The tiny text at the bottom will say "226 Transfer complete" and the main part of the window will show a listing of the files in the /uploads/ folder on the server.
|
|
<li>Now click on the little icon of a phone near the middle of the top row of icons.
|
|
<li>This will show a list of folders on your phone. Initially it will show "alt_autocycle, Android and DCIM".
|
|
<li>Click on ""DCIM", it will show a folder "Camera", click on that
|
|
<li>Now you can see a list of all your photo files by name and with the size shown on the right. Typically they will be 1.3MB or so in size.
|
|
<li>Before you upload, you need to create your own folder.
|
|
<li>Now click on the icon of a little cloud near the middle of the icon bar. This will show the files on the server.
|
|
<li>Now you need to create a folder <span style="font-family: monospace">/YourName/</span> and move those files into it. Click on the 3-dots icon on the right-hand end of the icon bar.
|
|
<li>Select the Create Folder option.
|
|
<li>A popup appears and you type in YourName. The folder is created.
|
|
<li>Click on the <span style="font-family: monospace">/YourName/</span> folder. This will makeyour folder the destination for uploaded files.
|
|
<li>Now click on the little icon of a phone near the middle of the top row of icons.
|
|
<li>This shows you the list of your photo files you saw before.
|
|
<li>Clicking on each photo filename will cause a green tick to appear on the left. This is selecting files for FTP upload.
|
|
<li>Now click on the "upload icon" on the top row: it looks like a short horizontal line with an up-arrow on it.
|
|
<li>A popup will appear asking if you wish to proceed. Click OK.
|
|
<li>The upload happens and you can see progress bars for each file.
|
|
<li>When it finishes it presents a popup with an OK button. Click on it.
|
|
<li>Now you will see the files you have just uploaded. And they will be in your folder. Success.
|
|
<li>Now you need to rename the files to something descriptive. This is very time-consuming on a phone.
|
|
<li>Click on one file to give it a green tick. Then select the 3-dot icon and then select the "Rename" option in the drop-down menu.
|
|
<li>Of course you will have earlier noted down the names of all your photos and made a note of their contents (which you see using the phone's Gallery app) so that you can do the renaming intelligently.
|
|
|
|
</ol>
|
|
<hr />
|
|
</body>
|
|
</html>
|