Page 1 of 1

Upload question

Posted: Fri Jul 09, 2010 2:19 pm
by MiniMonty
Hi all,

I've inherited a project and I need to write a simple upload image script but this front end code is confusing me.
Not sure how to refer to it where I would normally use [fileField] or similar - nothing seems to work. Not sure
if it was put together by a programmer or designer !

Code: Select all

        <div class="listing-form-cont">
                <div class="applynow listing-form">
			 </div><!--end listing-form-cont-->
					<div class="listing-form-cont">
            	<div class="applynow listing-area">
                    <ul class="listing-image">
                    	<li><label>Image</label></li>
                        <li class="li-col2">
                        	<div class="listing-file">
  								<input type="file" onchange="document.getElementById('fileInputText').value = this.value;" size="25" id="fileInput">
  								<div id="listing-file-mask">
   								 	<input type="text" id="fileInputText">
  								</div>
							</div>
                        </li>
                        <li class="li-col3"><a href="#"><img src="images/remove.gif" alt="remove"></a></li>
                        <li class="li-col4">Upload less then 10mb</li>
                    </ul>
            	</div><!--end applynow-->
            </div>

Any advice much appreciated.

Best wishes
Monty

Re: Upload question

Posted: Fri Jul 09, 2010 3:08 pm
by requinix
Does it use AJAX for the upload, or are you creating all this by yourself?

Re: Upload question

Posted: Fri Jul 09, 2010 3:56 pm
by MiniMonty
Changed a line and added name= and now it works fine.