Uploading data

From LabTrove Documentation
Revision as of 14:41, 29 November 2011 by Cerysw (talk)

Jump to: navigation, search

Uploading files to the Notebook

You can upload data files to your Notebook to enable others to view or download them. If the data files are in .png or .jpg format, the image can be displayed on the Entry and can be commented on separately. You can add links to your data files to the Entry with which the files are associated. This is helpful for enabling others to see that there is data associated with the Entry because you can only see the data files when the specific Entry is selected.

You cannot upload data to a new Entry. You must first create a new Entry, and then edit the Entry to add your file. Icons and links for the uploaded files are displayed in the Attached Files box beneath the Entry with which they have been associated.

NOTE: You can not delete a file once it has been uploaded to a Entry. Ensure you select the correct file before you upload it.

If you want to upload multiple files in one go, you can create a zip containing the files. If you change the Upload Type to Zip File when you upload the file, LabTrove will decompress the files and add each file individually to the Entry. If you set the Upload Type to Single Item, the zip file is not decompressed, and zip file itself is added to the Entry.

To add a data file to your Entry:

  1. Create and submit a new Entry or select an existing Entry.
  2. Click the Edit Post link beneath the Entry.
  3. In the Attached Files section, click Upload data.
  4. (Optional) Enter a title for your data file. This is useful for others who might want to download your file.
  5. Click Choose File to browse your file system for the data file.
  6. Select the file that you want to upload and click Choose.
  7. (Optional) Select the file type from the Type drop-down list. Leave the Type selected as Auto Detect to let LabTrove determine the file type.
  8. (Optional) If you are uploading a zip file and you want the files in the zip file to be added individually, change the Upload Type' to Zip File.
  9. (Optional) If you want to provide a link to the data file in the text of the Entry (NOTE: If you make changes in the Entry you will lose them if you add data file unless you Submit your changes first):
    1. Ensure your cursor is in the position within your Entry where you want to add the link to data file.
    2. Click the Add to text button.
  10. When you are ready to save your changes to the post, enter a reason for your changes in the Reason For Edit field.
  11. Click Submit to save the changes.

When you edit the post, there is an 'Attached Files' box at the bottom of the page:

Choose the 'upload data' link. A 'File Upload' box should pop up, which looks like this:

The file should now appear in the Data box. Alongside each file is an 'Add to text' button, which will put the appropriate code in the text box at the position of the cursor. While you can move the code to an appropriate position in the text, it can be fiddly to place the picture and nearby text exactly where you want them. If you don't need to put the file into the blog entry itself, you don't have to add it to the text. If you don't, all the files will appear below the post on the post's page, although bear in mind there'll be no indication on the main blog page that they are there. Once a file has been uploaded on to the system, it is available for anyone to post. It is assigned a short numeric code, e.g. 688. Typing [data]688[/data] will then produce that file in another post or comment. This works within each group of blogs. To find the tag of a file, you can hover the mouse above it. Now look at the long thin box at the bottom of the browser. A section of it is shown here:

In it, you can see 'id=2243'. That is the tag for the file, and the tag you should use to reference it. Formating Data Items Resize data items, to resize them you can use the following syntax. [data=size:99x212]6[/data] also if you only what a text link to the data in a post then you can use [data=text]6[/data]

Adding an image from a website

You can add an image from a website to your Entry. Text does not wrap around an image, so position the image on a new line in your Entry. You can also upload your own picture to your Notebook, see Uploading data. To add an image from a website in your Entry:

  1. Ensure your cursor is in the position within your Entry where you want to add the image and click the Picture button.
  2. Enter the full URL address for the image. For example, for Google's Milankovich Logo you would enter the following URL in the URL field: http://www.google.com/logos/milankovich10-hp.gif
  3. Click OK to add the link to the image into the Entry. The format of the added link will look similar to the following markup: [img]http://www.google.com/logos/milankovich10-hp.gif[/img]
  4. Click Submit to save your Entry. If you are editing a Entry you must enter a Reason for Edit before you can submit the Entry. If the URL you entered is correct, the image is shown in your saved Entry.

What to do next