Uploading data

From LabTrove Documentation
Jump to: navigation, search

Contents

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. 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, you would 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.

To find the unique code for a data file:

  1. Click on the data file to open the file in the browser.
  2. Record the value shown in the title bar for the new window.
  3. The unique code for the data file is the number part of the name of the html file. For example, if the title of the window is displayed as http://yourblog/data/files/27654.html, the unique code for the data file is 27654.
You would therefore enter the following text in your Entry to create a link to that data file:
[data]27654[/data]

Changing the format of the data displayed in your Entry

You can change the way that the links to data files are displayed in your post. You can change the size of the image or icon that is displayed for the data files. You can also choose to display the name or title of the data file instead of an icon or image.

To change the size of the icon or image for the data file:

  1. Choose the width and height that you want for the icon or image in pixels.
  2. Edit the data markup to include the size attribute. For example, to change the size of the icon for the data item 688 to 80 pixels by 40 pixels, enter the following text into your Entry: [data=size:80x40]688[/data]
  3. Enter a Reason for edit and Submit the changes to your Entry.

The size of the icon or image for the data file will be changed in your Entry.

To display only the title or name of the data file:

  1. Edit the data markup to include the text attribute. For example, to display only the title or name of the data item 688, enter the following text into your Entry: [data=text]688[/data]
  2. Enter a Reason for edit and Submit the changes to your Entry.

The icon or image for the data file is no longer displayed, and the title or name of the file is displayed in one of the following formats:

  • Data: DataFileName.extension
  • Data: DataFileTitle

What to do next


Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox