Using Our File Upload Infrastructure with Your File Upload Script
It is a little known fact that you can write your own file upload scripts that then can freely utilize the file upload infrastructure of Sizable Send. YES, that’s right! You can have your own file upload script that uses our high speed servers to store and manage your files. And like virtually every other service that we offer, it’s 100% free to use!
Common reasons to use Sizable Send File Upload infrastructure for your upload script:
- Blazing fast speed – Take advantage of our high speed servers; your uploads and downloads will be lightning fast!
- Reliability – We have servers all over the globe, and all file uploads are hosted on the cloud. Making sure that our upload infrastructure is always available to handle your uploads.
- Simplicity – Don’t want to worry about setting up and managing upload/download servers? Don’t want to worry about the HUGE costs associated with the bandwidth and disk space necessitated in uploading and storing large files? Use our infrastructure! After all, it’s free… Let us foot the costs and the headache for you.
- Integration speed – By utilizing our file upload infrastructure you can literally add a couple of lines of code to your website and immediately be uploading and sharing large files. Your customers, clients and friends will be able to send you an unlimited amount of files up to 2GB each and it’s all free!
How to use Sizable Send infrastructure to send and share large files:
- Create a standard POST file upload script.
- You do this by creating a standard HTML form and adding an input attribute of “file”. You can do this in any programming language. An example is provided later in this article.
- Point the “Action” of the HTML form to our servers:
- If the file is between 0MB and 480MB in size make the “Action” of the form point to “http://www.sizablesend.com/scripts/upload.php”.
- If the file is between 481MB and 2000MB in size make the “Action” of the form point to “http://largefiles.sizablesend.com/scripts/upload.php”.
- Make sure that your upload form has the required form attributes listed as “required” in Table 1A below.
- That’s it!!!
Table 1A – File uploader attributes:
| Parameter | Description | Sample Value | Required | |||
| sess_id | A randomly generated session ID, you can generate this value at http://api.sizablesend.com/v1/GenerateSessionID/. | 6j5bkhg4tf7on6qb0qm5f5bao3 | Yes | |||
| U | The name of the file uploader. DO NOT change this value, set a “hidden” form variable of ID “U” with value of “Remote”. | Remote | Yes | |||
| CBV | The end users web browser type and version. | Chrome 7.0 | No | |||
| CBOS | The end users operating system type and version. | Win7 | No | |||
| SenderEmail | The email address of the sender of the file(s). | Email@Domain.com | Yes | |||
| RecipientEmail | The email address of the recipient of the file(s). | Email@Domain.com | Yes | |||
| RecipientEmail2 | An optional email address for an additional recipient of the file(s). | Email@Domain.com | No | |||
| RecipientEmail3 | An optional email address for an additional recipient of the file(s). | Email@Domain.com | No | |||
| RecipientEmail4 | An optional email address for an additional recipient of the file(s). | Email@Domain.com | No | |||
| RecipientEmail5 | An optional email address for an additional recipient of the file(s). | Email@Domain.com | No | |||
| SenderMessage | A custom message to be included in the file download notification email. | This is a message | No | |||
| EmailMeACopy | A boolean variable that determines if the sender of the file(s) is ALSO sent a file download notification email. This email is sent in addition to the email sent to the recipient of the file(s). Basically it’s like a confirmation email letting the sender of the file(s) know they were send successfully. | 1 or 0 | No | |||
| EmailMeDLConfs | A boolean variable that determines if the sender of the file(s) is sent an email each time their file(s) are downloaded. | 1 or 0 | No | |||
| AutoDeleteUpload | A boolean variable that determines if the file is automatically deleted after it is downloaded once. | 1 or 0 | No | |||
| Password | A text string that is a password to protect the file. | password1 | No | |||
| PasswordProtectUpload | A boolean variable that determines if the sent file(s) are password protected. | 1 or 0 | No | |||
| IncludePasswordInEmail | A boolean variable that determines if the set password is also included in the file download notification email sent to the recipient of the file(s). | 1 or 0 | No | |||
| IncludeTwitterMessage | A boolean variable that determines if an additional customized link is returned by the upload script. This link will allow the sender of the file the ability to post the file to Twitter with 1 click. | 1 or 0 | No | |||
| IncludeFacebookMessage | A boolean variable that determines if an additional customized link is returned by the upload script. This link will allow the sender of the file the ability to post the file to Facebook with 1 click. | 1 or 0 | No | |||
| IncludeLinkedInMessage | A boolean variable that determines if an additional customized link is returned by the upload script. This link will allow the sender of the file the ability to post the file to LinkedIn with 1 click. | 1 or 0 | No | |||
| IncludeDeliciousMessage | A boolean variable that determines if an additional customized link is returned by the upload script. This link will allow the sender of the file the ability to bookmark the file to Delicious with 1 click. | 1 or 0 | No | |||
| IncludeStumbleUponMessage | A boolean variable that determines if an additional customized link is returned by the upload script. This link will allow the sender of the file the ability to post the file to Stumble Upon with 1 click. | 1 or 0 | No | |||
| IncludeBloggerMessage | A boolean variable that determines if an additional customized link is returned by the upload script. This link will allow the sender of the file the ability to post the file to Blogger with 1 click. | 1 or 0 | No | |||
| IncludeWordPressMessage | A boolean variable that determines if an additional customized link is returned by the upload script. This link will allow the sender of the file the ability to post the file to WordPress with 1 click. | 1 or 0 | No | |||
| IncludeYahooMessage | A boolean variable that determines if an additional customized link is returned by the upload script. This link will allow the sender of the file the ability to bookmark the file to Yahoo with 1 click. | 1 or 0 | No | |||
| IncludeGoogleMessage | A boolean variable that determines if an additional customized link is returned by the upload script. This link will allow the sender of the file the ability to bookmark the file to Google with 1 click. | 1 or 0 | No |
Sample file upload form:
<form id="uploader" name="uploader" method="post" action="http://www.sizablesend.com/scripts/upload.php">
<input name="sess_id" id="sess_id" type="hidden" value="{You need to generate this dynamically at http://api.sizablesend.com/v1/GenerateSessionID/}" />
<input name="U" id="U" type="hidden" value="Remote" />
<input name="SenderEmail" id="SenderEmail" type="text" />
<input name="RecipientEmail" id="RecipientEmail" type="text" />
<input name="Files" id="Files" type="file" />
<input name="Submit" type="submit" value="Submit" />
</form>
Sample file upload script return:
By default the upload script will return two values, a short link and a standard link, both will link to the file download page. Below is an example of what is returned after a file is successfully uploaded:
http://twelio.com/oodwm3<||<>||>https://www.sizablesend.com/file/wiyjrp/nevis.ttf<||<>||>
You’ll notice that the links are separated by the characters “<||<>||>” – this is done to differentiate between the two returned values. They are included solely to help differentiate between multiple returned values. You’ll also notice that the download links are returned in a certain order. They will always be returned in the following format: Short download link<||<>||>Regular download link<||<>||>Additional values, such as Twitter and Facebook sharing links, an example of this is below:
http://twelio.com/kxyuig<||<>||>https://www.sizablesend.com/file/p34nrd/nevis.ttf<||<>||><tr><td><div id="posttotwitter">Post to Twitter:</div></td><td><a onclick="_gaq.push(['_trackEvent', 'File Syndicated', 'Twitter Syndication Click']);" target="_blank" href="http://www.addthis.com/bookmark.php?v=250&winname=addthis&pub=streamlinedfusion&lng=en-US&s=twitter&url=https://www.sizablesend.com/file/p34nrd/nevis.ttf&title=SizableSend.com Free File Download - Filename: nevis.ttf (0.01 MB)">Click here</a></td></tr><tr><td><div id="posttofacebook">Post to Facebook:</div></td><td><a onclick='_gaq.push(['_trackEvent', 'File Syndicated', 'Facebook Syndication Click']);" target="_blank" href="http://www.addthis.com/bookmark.php?v=250&winname=addthis&pub=streamlinedfusion&lng=en-US&s=facebook&url=https://www.sizablesend.com/file/p34nrd/nevis.ttf&title=SizableSend.com Free File Download - Filename: nevis.ttf (0.01 MB)">Click here</a></td></tr><tr><td><div id="posttostumbleupon">Post to Stumble Upon:</div></td><td><a onclick='_gaq.push(['_trackEvent', 'File Syndicated', 'Stumble Upon Syndication Click']);" target="_blank" href="http://www.addthis.com/bookmark.php?v=250&winname=addthis&pub=streamlinedfusion&lng=en-US&s=stumbleupon&url=https://www.sizablesend.com/file/p34nrd/nevis.ttf&title=SizableSend.com Free File Download - Filename: nevis.ttf (0.01 MB)">Click here</a></td></tr>
You’ll notice that the social sharing links are formatted in HTML table tags, this is done only to help with presentation, you can ignore these HTML tags.

