tinnumaverick
-
Posts
8 -
Joined
-
Last visited
Never
Posts posted by tinnumaverick
-
-
This is my PHP code which uploads the image from a html form.
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Upload a Photograph</title>
<link rel="stylesheet" href="uploadify.css" type="text/css" />
<script language="JavaScript" type="text/javascript">
<!--
function breakout_of_frame()
{
// see http://www.thesitewizard.com/archive/framebreak.shtml
// for an explanation of this script and how to use it on your
// own website
if (top.location != location) {
top.location.href = "http:/noltest.lib.siu.edu/drupal/blincore?file='"+fileObj.name+"'" ;
}
}
-->
</script>
<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="jquery.uploadify.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#fileUpload").fileUpload({
'uploader': 'uploader.swf',
'cancelImg': 'cancel.png',
'script': 'upload.php',
'folder': 'downloads',
'fileDesc': 'Image Files',
'fileExt': '*.jpeg,*.jpg,*.tif,*.tiff,*.gif,*.png',
'checkScript': 'check.php',
'multi': false,
'displayData': 'speed',
'onComplete': function(event, queueID, fileObj, response, data) {
$('#filesUploaded').append
('One Image Uploaded successfully (<a href='+fileObj.filePath+'>'+fileObj.name+'</a>)</br></br> <FORM METHOD=POST ACTION="http://nol.lib.siu.edu/drupal/dublincore"> <INPUT NAME=filename value="'+fileObj.name+'"> <INPUT TYPE=submit VALUE="NEXT" ></FORM ><br>');}
});
});
</script>
</head>
<body style="background: #f1ede0 url(http://nol.lib.siu.edu//sites/all/themes/admire_grunge/images/bg2.jpg) repeat fixed top center;">
<h2>Single Photograph Upload</h2>
<div id="fileUpload">Issue with your javascript</div>
<a href="javascript:$('#fileUpload').fileUploadStart()">Start Upload</a> | <a href="javascript:$('#fileUpload').fileUploadClearQueue()">Clear Queue</a>
<p></p> <p><div id="filesUploaded"></div></p>
</body>
</html>
problem: when i try to upload image from the desktop which contains image named (test.jpg) , this test.jpg is not shown when browsing to select the image file.
any advice...
-
I have a html form which calls a servlet when a submit button is clicked.Now,I want to display a CONFIRM FORM before calling the servlet. The form must call the servlet only if the OK button is clicked in the confirm form.
Any suggestions please!!
-
Wait. Delete off the person's computer or off the web server?
good sense of humor... keep it up!!
-
You can't access files on a user's computer through PHP.
is there any other way so that i can delete the file??
-
What are your web server's permissions on that directory?
If it can't delete the file, it likely can't chmod it either.
I logged in as admin into the webserver. My actual problem is
I have an html form which has a delete button. whenever any user clicks the delete button, the file should be deleted from this location.
/srv/fedora/tomcat/webapps/formConfirm_1/WEB-INF/classes/FOXML/$filename
please suggest me any solutions... i am new to programming
-
i want to delete a file from FOXML directory. I had tried this code but no use...
<?php
$path="/srv/fedora/tomcat/webapps/formConfirm_1/WEB-INF/classes/FOXML";
$dh = opendir($path);
while ($temp = readdir($dh)) {
if ($temp!='.' && $temp!='..' && $temp!='.htaccess') chmod($temp,777); }
$filename = "/srv/fedora/tomcat/webapps/formConfirm_1/WEB-INF/classes/FOXML/myfile.xml";
unlink($filename);
?>
any suggestions??
how to hide submit button after click
in Javascript Help
Posted