kanuski
09-18-2003, 11:30 AM
I have a php site in which I allow users to upload pictures from their computers. I use javascript to copy the filename of the uploaded file as a new variable. On the next page I use this path and filename to display the picture from their computer. I am getting reports from users that this is not working on some Mac OSX machines. The complete adddress does not seem to be copying. eg. /Israel Summer ''''03/disk1/Acadiabeach.JPG
Is there something I can do to make this more universal?
Here is the code I use:
<form enctype="multipart/form-data" name="join" method="post" action="add2.php" onSubmit="return submitForm(this.submitbutton)">
<center>
<input name="uploadedfile" type="file" onChange="this.form.path.value=this.value;">
<input type=hidden name=path size=15 value="" onChange="this.value=this.form.name.value;">
<input type="submit" name="submitbutton" value='Next Page'>
</center>
</form>
Is there something I can do to make this more universal?
Here is the code I use:
<form enctype="multipart/form-data" name="join" method="post" action="add2.php" onSubmit="return submitForm(this.submitbutton)">
<center>
<input name="uploadedfile" type="file" onChange="this.form.path.value=this.value;">
<input type=hidden name=path size=15 value="" onChange="this.value=this.form.name.value;">
<input type="submit" name="submitbutton" value='Next Page'>
</center>
</form>