---
schema_version: "1"
id: 57f5964cc17d542e13317768a0e303252cfdbd309aa0e8375d00a3748a889f05
title: Upload Attachments
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/data-loader-impl/guides/data-loader/loader-attachments.md
canonical_url: https://developer.salesforce.com/docs/platform/data-loader-impl/guide/loader-attachments.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: d74fbf90a2afeaea0fe019283acea2375c9d2b5e842bfe5a208b9c1ec3fa80d6
products:
  - Data Loader Guide
  - Platform Developer Content
---

# Upload Attachments

Use Data Loader to upload attachments to Salesforce.

Before uploading attachments, note the following:

-   If you intend to upload with Bulk API, verify that **Upload Bulk API Batch as Zip File** on the **Settings** | **Settings** page is enabled.
-   If you are migrating attachments from a source Salesforce org to a target org, begin by requesting a data export for the source org. On the Schedule Export page, select **Include Attachments** to include the Attachment.csv file in your export. You can use this CSV file to upload the attachments. .

Confirm that the CSV file you want to use for attachment importing contains these required columns. Each column represents a Salesforce field. The CSV file can also include other optional Attachment fields, such as Description.

-   ParentId—Salesforce ID of the parent record
-   Name—Name of the attachment file, such as myattachment.jpg
-   Body—Absolute path to the attachment on your local drive

    Make sure that the values in the Body column contain the full path of the attachments on your computer. For example, if an attachment named myattachment.jpg is the folder C:\Export, Body must specify C:\Export\myattachment.jpg. Your CSV file looks like this example:

    ```nolang
    ParentId,Name,Body
            50030000000VDowAAG,attachment1.jpg,C:\Export\attachment1.jpg
            701300000000iNHAAY,attachment2.doc,C:\Export\files\attachment2.doc
            50030000000VJowBBG,attachment_word_document.doc,C:\Export\attachment_word_document.doc
    ```


Proceed with an insert or upsert operation (see [Insert, Update, or Delete Data Using Data Loader](https://developer.salesforce.com/docs/platform/data-loader-impl/guide/inserting-updating-or-deleting-data.md)). For the select data objects step, select **Show all Salesforce objects** and the attachment object name in the list.

