change upload code to url

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
phpxz
Forum Newbie
Posts: 1
Joined: Mon Jan 18, 2010 12:34 pm

change upload code to url

Post 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>
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: change upload code to url

Post by McInfo »

Use a "text" input instead of a "file" input.

Edit: This post was recovered from search engine cache.
Post Reply