Jump to content

tinnumaverick

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Posts posted by tinnumaverick

  1. <?php
    echo "<html>";
    echo "<head></head>";
    echo "<body>";
    echo " <form method=\"post\" action=\"http://testrun.libst.siu.edu/drupal/tagdublincore\"> ";
    echo  "<input name=filename value=$name >"; 
    echo  "<input type=submit value=\"next\"></form >";
    echo "</body>";
    echo "</html>";
    
    }
    ?>
    
    
    
    <html>
        <head>
        </head>
        <body>
    
    <h2>Upload Image</h2>
    <form enctype="multipart/form-data" method="post" action="http://testrun.libst.siu.edu/drupal/sep1">
    
    <input type="file" name="fileToUpload" />
    </br>
    
    // I WANT TO HIDE THIS SUBMIT BUTTON AFTER CLICKING
    <input type="submit" name="submit" value="Upload File"  />
    </form>
    </body>
    
    </html>

     

    :confused:

  2. 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...  :confused:

  3. 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

     

     

  4. 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??

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.