Page 1 of 1

change upload code to url

Posted: Mon Jan 18, 2010 12:40 pm
by phpxz
hi,

i have a script that upload song to my server, but i dont want to upload i just want to use link cause it save time and space, so anyone tell me how edit this code that it just accept url in place of upload:

Code: Select all

<tr>
        <td class="clsFormLabelCellDefault"><p><?php echo JText::_( 'CHOOSE SONGS' ); ?></p></td>
        <td class="clsFormFieldCellDefault"><input type="hidden" id="uid" name="uid" value="<?=$user->id?>" />
          <input type="hidden" id="hidUploadID" name="UPLOAD_IDENTIFIER" id="UPLOAD_IDENTIFIER" value="aaa" />
          <input type="file" name="Filedata" class="validate['required']" id="photoupload-filedata-1" />
          <p class="clsNoSpaces"><?php echo JText::_( 'MAX FILE SIZE' ); ?>&nbsp;<?php echo ($this->config->get('upload_maxsize') / 1000000); ?><?php echo JText::_( 'MB' ); ?>&nbsp;<?php echo JText::_( 'SUPPORTED FORMATS' ); ?></p><br />
          <div id="uploadStatusDiv" style="width:0px; height:0px; visibility:hidden;"></div>
          <div id="progressBarFrame">
            <table id="progressBar" class="progress">
              <tr>
                <td><p class="clsNoSpaces">
                  <div id="statusText"></div>
                  </p></td>
              </tr>

Re: change upload code to url

Posted: Mon Jan 18, 2010 3:02 pm
by McInfo
Use a "text" input instead of a "file" input.

Edit: This post was recovered from search engine cache.