Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8286207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:39:27+00:00 2026-06-08T11:39:27+00:00

I am using uploadify although it works it does not upload into the folder.

  • 0

I am using uploadify although it works it does not upload into the folder. How can I make it copy? The folder is 777.

here is the page if needed:

http://www.dilyurdu.com/uploadify/

// script

$(function() {

$("#file_upload_1").uploadify({
    height        : 30,
    swf           : 'uploadify.swf',
    uploader      : 'uploadify.php',
    width         : 120
});
});

//php

$targetFolder = '/uploads'; // Relative to the root

if (!empty($_FILES)) {
$tempFile = $_FILES['Filedata']['tmp_name'];
$targetPath = $_SERVER['DOCUMENT_ROOT'] . $targetFolder;
$targetFile = rtrim($targetPath,'/') . '/' . $_FILES['Filedata']['name'];

// Validate the file type
$fileTypes = array('jpg','jpeg','gif','png'); // File extensions
$fileParts = pathinfo($_FILES['Filedata']['name']);

if (in_array($fileParts['extension'],$fileTypes)) {
    move_uploaded_file($tempFile,$targetFile);
    echo '1';
} else {
    echo 'Invalid file type.';
}
}   
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T11:39:29+00:00Added an answer on June 8, 2026 at 11:39 am

    Try this

    <script type="text/javascript">
    $(document).ready(function() {
     $(function() {
        $("#file_upload").uploadify({
                'uploader'       : '<?php echo base_url();?>flash/uploadify.swf',
                'script'         : '<?php echo base_url();?>scripts/uploadify.php',
                'folder'         : '/folder_name_where_you_want_to_upload/',
                'height'         : 30,
                'onError'        : function(event,queueID,fileObj,errorObj){
                        // alert(errorObj["type"]+" - "+errorObj["status"]+" - "+errorObj["text"]);
                 },
                });
        });
    });
    </script>
    

    And also echo $targetPath in uploadify.php so that you can trace the path where it is being uploaded.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Uploadify works for Visual Studio but not for IIS 7 (same machines), using Forms
I'm using Uploadify to upload files in my site and in order to make
I'm using Uploadify on localhost to develop a site where users can upload files.
I'm using Uploadify and Kohana and I'm creating file uploader. User can upload only
I'm using uploadify on a page that allows a user to upload images as
I am using uploadify jQuery plugin form here . Everything works fine on my
I am using Uploadify and class.upload.php for uploading and manipulating images. here are my
I am using Uploadify jQuery plugin for file upload.Here there is no browse button
I am using the Uploadify Plugin to Upload files. although this might be a
So I'm using uploadify to upload multiple images to a folder. Along with each

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.