> For the complete documentation index, see [llms.txt](https://docusol.gitbook.io/docusol/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docusol.gitbook.io/docusol/basics/editor.md).

# Uploading Documents

## Uploading Documents

### Overview

The document upload page allows you to securely upload and optionally set a password  and sign your documents. The actual files are not stored on the blockchain. A copy is stored in our database to be a platform for you to be able to see and manage them.

### Step 1: Upload Your Document

1. Drag and drop a file or click the file uploader and upload the desired document
2. Preview the uploaded file.
   1. Currently, PDFs are only be previewed in desktop. For mobile devices, you'll have to preview it in a new tab.&#x20;

Something I will be implementing in the roadmap is utilizing a PDF library that will allow you to view them on mobile. Currently utilizing native `<embed>`HTML element to preview the document.

### Step 2: Document Options

#### Document Name

* Enter a name for your document in the "Document Name" field
* This name will be used to identify your document in the system
* Choose a clear, descriptive name that helps you recognize the document

#### Password Protection (Optional)

* If desired, enter a password to protect access to your document
* Leave blank if you want the document to be publicly accessible
* The password will be required for others to view and sign the document
* **Note**: Documents without password protection will be public

### Step 3: Sign Document (optional)

The signing is optional as the original uploader. This is useful if you need to have two parties involved sign the document.

* Use the signature area to add your signature
* Select "Draw" from the dropdown to create a signature using your mouse/touchpad
* You can clear the drawing and start over by clicking the red trash icon
* The signature will be cryptographically attached to your document
* You can also select the "Type" option, which will allow you to type out your signature and will be converted into a canvas signature.

I have plans to improve the signature feature and add drag and drop, allowing you to specify the location. The typed signature defaults to cursive font that scales proportionally to the dimensions of the file. I'll also plan to include improvements for the typed signature such as font size and family selection.

### Step 4: Save Document

* Click the "Save Document" button at the bottom to finalize
* Your document will be processed and stored securely on the blockchain
* You'll receive confirmation once the upload is complete

### Step 5: Success Dialog

* After successful upload, a dialog will appear with some information regarding the file hash
* You can click the hyperlink to view the transaction on Solana Explorer and view the file hash in the memo
* You'll also see the file hash of the signed document
* You'll be given the link that you can share to the recipient to sign the document

### Important Notes

* Supported file formats include: PDF, JPEG, and PNG
* Maximum file size: 4MB
* Signatures are permanently linked to documents on the blockchain
* All uploaded documents are processed and stored securely
