Menu

#27 Upload Trouble

open
nobody
None
6
2006-07-18
2006-07-18
No

I downloaded and started customizing the SFM script. I
have everything in place except I cannot upload files.
When I click select a file (any size, big or small) and
hit upload it gives me the message: Please press the
browse button and select a file to upload before you
press the upload button.

Here are some details of my particular configuration:

Full absolute path to fm.php =
/usr/home/web/users/a0028122/html/secure/
--
FM.php is set as an include within main.php
--
$defineroot = 1;
/* Directory 1: */
$dir[1]='/users/';
$dirroot[1]='Users';
$dirpath[1]='/users/';
$nav[1]='<a href="main.php?u=$u&copt=1">User Files</a>';
--
CHMOD set to 0777 for the ‘users’ directory which is
where all files will be uploaded (actually files will
go into subdirectories of the ‘users’ directory.
--
ERROR LOG Entry = [Mon Jul 17 21:12:43 2006] [error]
[client xx.xx.xx.xx] File does not exist:
/usr/home/web/domains/domain.com.phtemp.com/secure/includes,
referer:
http://domain.com.phtemp.com/secure/main.php?MAX_FILE_SIZE=1000000&copt=1&MAX_FILE_SIZE=1000000&copt=1&uploadedfile=071706_BTSportswear.pdf&upload=Upload&u=&pathext=users%2Fmcanarelli%2F&sortKey=0
--
There was one part of the code that didn’t look right,
but then again I am a beginner....

<table cellpadding=0 cellspacing=0 border=0 width=100%
bgcolor="#e9e9e9">

<form name="upload" method="post"
action="/secure/main.php" enctype="multipart/form-data">
!-- this line is a duplicate of another below :::::::
<input type="hidden" name="MAX_FILE_SIZE"
value="1000000">
!-- this line is a duplicate of another below :::::::
<input type="hidden" name="copt" value="1">
<tr>
<td align=center width=10%></td>
<td width=1 bgcolor=black><img
src="fm_files/spacer.gif" width="1" height="1"
border=0></td>
<td align=center width=40%>

</td>
<td width=1 bgcolor=black><img
src="fm_files/spacer.gif" width="1" height="1"
border=0></td>

<td align=center width=50%>
<input type="hidden" name="MAX_FILE_SIZE"
value="1000000">
<input type="hidden" name="copt" value="1">
<input class=altButton type="file"
name="uploadedfile"><input class=altButton
type="submit" name="upload" value="Upload">
<input type="hidden" name="u" value="">
<input type="hidden" name="pathext"
value="mcanarelli/">
<input type="hidden" name=sortKey value="0"></td>
</form>
</tr>

</table>
--

Any and all help you are able to provide will be
GREATLY appreciated. I am stumped!!!

Thanks,
Mike Canarelli
mike@canarellidesign.com

Discussion

  • Mike Canarelli

    Mike Canarelli - 2006-07-18
    • priority: 5 --> 7
     
  • Mike Canarelli

    Mike Canarelli - 2006-07-18
    • priority: 7 --> 6
     

Log in to post a comment.

MongoDB Logo MongoDB