Batch Attachment Uploader
The Batch Attachment Uploader allows users to bulk upload attachments (files) to existing records by matching filenames against record identifiers.
Features of the Batch Attachment Uploader
- Validation and Upload: Validate, upload, and roll back attachments as needed.
- Record Disambiguation: Automatically disambiguate records when a filename matches multiple records.
- Upload Control: Ability to stop uploads or rollbacks at any point.
- Network Resilience: Upload and rollback processes are tolerant of network issues and client-side crashes.
- Metadata Attachment: Attach remarks to the metadata of the dataset.
- Numeric Field Matching: When using numeric fields (e.g., Catalog Number) for matching, filenames like
000000001.jpg
,1.jpg
, and0001.jpg
are treated as equivalent. However, text fields will differentiate between these formats. If you upload multiple attachments for a numeric field, you will need to include all leading zeros for the format, see below.
Permissions
To use the Batch Attachment Uploader, non-admin users must be assigned the âBulk Attachment Importâ role by an admin in the âSecurity and Accountsâ section. This role grants full access to the uploader and can be customized as needed.
For more information on Security & Accounts and user roles, refer to this guide.
Working with Data Sets
Selecting and Validating Files
-
Navigate to the Attachments gallery by clicking the side menu icon and then click on Import in the top-right corner.
-
A dialog displaying existing attachment datasets will appear. Click on New to create a new dataset.
-
You can select files in two ways:
- Click Choose files or drag them here.
- Drag files onto the blank area in the center.
-
By default, no field is selected for matching files to records. Choose the desired matching field from the picklist. Available options include:
- Collection Object / Catalog Number
- Collection Object / Alt Cat Number
- Taxon / Full Name
- Storage / Full Name
- Collecting Information / GUID
- Collecting Information / Collector Number
- Loan / Loan Number
- Accession / Accession Number
- Gift / Gift Number
- Preparation / Bar Code
- Preparation / GUID
- Borrow / Invoice Number
- Treatment Event / Field Number
- Exchange In / Exchange In #
- Exchange Out / Exchange Out #
- Reference Work / GUID
- Reference Work / Title
- Locality / Unique Identifier
- Locality / GUID
- Permit / Permit Number
- Agent / GUID
- Collecting Trip / Trip Name
- Deaccession / Deaccession Number
-
After selecting the path, the system will mark files as correctly or incorrectly formatted. For instance,
000000001.txt
may be marked as correctly formatted, whileNot Correctly Formatted.txt
is marked incorrectly if it does not match the numeric field requirements. -
Click on Validate to test matches against records in the database:
- If a match is found, a formatted version of the record will be displayed with a link to open it in a new tab.
- If no match is found, the message
No match
will be displayed. - If multiple matches occur, the message
Multiple Matches. Click to Disambiguate
will appear. - Incorrectly formatted records will retain the label âIncorrectly Formattedâ.
Add Multiple Attachments to a Single Record
In many collections, it is common to have multiple attachments associated to a single record. For example, you may need to document different orientations of a specimen, such as âdorsalâ and âfrontalâ views, or include multiple photographs of the same specimen to capture various details.
Add Multiple Attachments
To add additional attachments to a single record in your data set, you can simply add an underscore after the field value you are matching and input any value.
When matching a numeric field, such as a 9-digit Catalog Number, you must include all leading zeroes in the filename to ensure it matches the format exactly when adding attachments to a single record.
This should follow the format you see on the data entry form for Collection Object (e.g. if the catalog number field shows 000493839
, this should be the file name).
Example:
You are uploading 3 attachments to a Collection Object with the catalog number 000493839
.
Filename | Status |
---|---|
000493839.jpg |
Correctly Formatted |
000493839_dorsal.jpg |
Correctly Formatted |
000493839_frontal.jpg |
Correctly Formatted |
If you upload a single attachment, Specify will treat filenames such as 0000000493839.jpg
, 0493839.jpg
, and 493839.jpg
as equivalents. If you upload multiple attachments, you will need to follow the format exactly.
Filename | Status |
---|---|
493839.jpg |
Correctly Formatted |
493839_dorsal.jpg |
Incorrectly Formatted |
493839_frontal.jpg |
Incorrectly Formatted |
Uploading Data Set
-
If an upload is possible, the Upload button will become visible. Click on it to start the upload process.
-
While the upload is in progress, a progress bar will display, along with an option to stop the upload.
- Clicking Stop will halt the upload. At least one file will always be uploaded unless the stop action is executed immediately. The table will indicate which files were uploaded and which were not.
- For remaining files after stopping, it will show
Cancelled: Stopped By User
.
-
If you refresh or open the link in a new tab, all previously selected files will display a warning, and you will need to reselect them before uploading. The system will match new selections against previously selected files based on filename, size, and type. If a match is found, the previous file will have
(No File)
removed. -
Click Upload again. Files that were previously uploaded will not be uploaded again and will show as
Skipped: Already Uploaded
. Files not correctly matched will displaySkipped: No Match
orSkipped: Multiple Matches
. Incorrectly formatted files will showSkipped: Incorrectly Formatted
.
Rolling Back Uploads
If you made a mistake when uploading attachments, you can reverse this upload and remove the attachments from the database. This is called a rollback.
- If a rollback is possible (i.e., at least one file has been uploaded), the Rollback button will become visible. Click on it to delete the uploaded files from the asset server and corresponding records from the database.
- Similar to the upload process, if you stop the rollback, the system will indicate which files were deleted and which were not.
- For files that were not uploaded, after the rollback, the message
Skipped: No Attachments Found
will appear. - You can stop the rollback at any point.