<?xml version="1.0" encoding="UTF-8"?>
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Upload_File</fullName>
    <availability>online</availability>
    <description>Upload CSV File</description>
    <displayType>button</displayType>
    <linkType>javascript</linkType>
    <masterLabel>Upload File</masterLabel>
    <openType>onClickJavaScript</openType>
    <protected>false</protected>
    <url>{!REQUIRESCRIPT(&quot;/soap/ajax/30.0/connection.js&quot;)}
{!REQUIRESCRIPT(&quot;/soap/ajax/30.0/apex.js&quot;)}

if ({!Sub_Upload_Util__c.Initiate_Process__c} == true) {
    alert(&apos;You cannot change uploaded files after initiating the process.&apos;);
} else {
    window.location = &apos;apex/SubUploadUtilRemoteVFPage?ParentId={!Sub_Upload_Util__c.Id}&apos;;
}</url>
</WebLink>
