Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Remote server doesn´t work.
  • Hi, i have problem with uploadify. Here is source code.

    <script type=\"text/javascript\" src=\"upload/jquery-1.3.2.min.js\"></script>
    <script type=\"text/javascript\" src=\"upload/swfobject.js\"></script>
    <script type=\"text/javascript\" src=\"upload/jquery.uploadify.v2.1.0.js\"></script>
    <script type=\"text/javascript\">
    $(document).ready(function() {
    $(\"#uploadify\").uploadify({
    'uploader' : 'upload/uploadify.swf',
    'script' : 'upload/uploadify.php',
    'cancelImg' : 'upload/cancel.png',
    'folder' : '<?php echo \"uploads/\".$_SESSION['log_user']; ?>',
    'queueID' : 'fileQueue',
    'auto' : false,
    'multi' : true,
    'buttonText' : 'Vybrat soubory'
    });
    });
    </script>

    It works on localhost server. I´m trying this on remote server it doesn´t work. Upload is complete, but target folder is empty. Where is problem? Thank you for answers.
  • Could it be an permission problem?
  • No , It doesn´t because permission is set to 777.
  • Some things more where I can think of:

    <?php echo "uploads/".$_SESSION['log_user']; ?> Does the path resolve correctly; check the page source.

    Try setting a fixed path to see if the uploads work.

    These composed paths already exist on the server?
  • i checked only uploads or root, but it didn´t work too. Folder exists. I´m sure.
  • Can you past the uploadify.php or you didn't touch that?

    Did you try to use http://url to upload folder

    The path to the folder you would like to save the files to. Do not end the path with a '/'.
    For absolute paths prefix the path with either '/' or 'http'. Note server security issues with trying to upload to remote destinations.
  • No, I don´t. I tryied http:// path, but it doesn´t work :(
  • Can you help me???
  • I am a bit clueless, i hope someone else can help you.
  • Ok, it nevermind. Thank you for all, but my problem is still actuall. Can you help me?
  • What does the actual output of the php echo look like? You should be able to view-source on the page and see what the javascript is seeing it as. Make sure that it is correct. I also had a problem with FileZilla and had to restart it a few times before my new uploads would show up, even if I refreshed.
  • This is output:
    <script type=\"text/javascript\" src=\"upload/jquery-1.3.2.min.js\"></script>
    <script type=\"text/javascript\" src=\"upload/swfobject.js\"></script>
    <script type=\"text/javascript\" src=\"upload/jquery.uploadify.v2.1.0.js\"></script>
    <script type=\"text/javascript\">
    $(document).ready(function() {
    $(\"#uploadify\").uploadify({
    'uploader' : 'upload/uploadify.swf',
    'script' : 'upload/uploadify.php',
    'cancelImg' : 'upload/cancel.png',
    'folder' : 'uploads/3',
    'queueID' : 'fileQueue',
    'auto' : false,
    'multi' : true,
    'buttonText' : 'Vybrat soubory'
    });
    });
    </script>

    I´m sure that file isn´t uploaded.