Uploading data

From LabTrove Documentation
Revision as of 15:00, 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 with no links in the Entry 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 next to the data file that you want to include in your Entry text.
  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.

Linking to an existing data file from your post

Once you have uploaded a file on to the Trove, anyone using the same Trove can link to it. Each uploaded file is assigned a unique numeric code, for example, 688. You can type the unique code in data markup to create a link to that data file within your Entry. For example, to create a link to a file with the unique code 688 type the following into your Entry at the appropriate location: [data]688[/data] When you submit your changes, the Entry will contain a link to that file. 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