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

  • Home
  • SEARCH
  • 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 3968750
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:52:50+00:00 2026-05-20T03:52:50+00:00

I need some help with jQuery uploadify . When uploading, I want to add

  • 0

I need some help with jQuery uploadify. When uploading, I want to add two fields (name and description) in the form, and I want to receive this data on the upload.php file. I think this can be done by using scriptData but I dont understand how I can send the values of these two fields and receive on the upload.php file.

<script type="text/javascript">

$(document).ready(function() {
    $("#fileUpload").fileUpload({
        'uploader': 'uploadify/uploader.swf',
        'cancelImg': 'uploadify/cancel.png',
        'script': 'uploadify/upload.php',
        'folder': 'files',
        'multi': false,
        'displayData': 'speed'
    });


});

</script>

And here is upload form with the fields:

<fieldset>
        <h2>File Upload</h2>
        Name:<input type="text" name="name"><br />
        Description: <textarea rows="5" cols="20" name="desc" >Enter Description</textarea>:<br /> 
        <div id="fileUpload">You have a problem with your javascript</div>
        <a href="javascript:$('#fileUpload').fileUploadStart()">Start Upload</a> |  <a href="javascript:$('#fileUpload').fileUploadClearQueue()">Clear Queue</a>
        <p></p>
    </fieldset>

I will be very thankful for any help.

  • 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-05-20T03:52:50+00:00Added an answer on May 20, 2026 at 3:52 am

    First define a function called upload:

    <script type="text/javascript">
    
    $(document).ready(function() {
        $("#fileUpload").fileUpload({
            'uploader': 'uploadify/uploader.swf',
            'cancelImg': 'uploadify/cancel.png',
            'script': 'uploadify/upload.php',
            'folder': 'files',
            'multi': false,
            'displayData': 'speed'
        });
    
    
    });
    
        function upload(){
            var ipName = $("input[name='name']").val();
            var ipDesc = $("textarea[name='desc']").val();
            var data = {name:ipName, desc:ipDesc};
            $('#fileUpload').uploadifySettings("scriptData", data).fileUploadStart();
        }
    
    
    
    </script>
    

    Then change your upload anchor to as follows:

    <fieldset>
            <h2>File Upload</h2>
            Name:<input type="text" name="name"><br />
            Description: <textarea rows="5" cols="20" name="desc" >Enter Description</textarea>:<br /> 
            <div id="fileUpload">You have a problem with your javascript</div>
                <a href="javascript:upload()">Start Upload</a> |
                <a href="javascript:$('#fileUpload').fileUploadClearQueue()">Clear Queue</a>
            <p></p>
        </fieldset>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As the title states I need some help on how to link this Jquery
I need some jQuery help on a search form I've created. Right now, in
Need some help with a #jQuery issue. Can someone look at this and tell
I need some help regarding making a form using PHP, MySQL, and jQuery. Here
I need some help with jQuery. I have a forms with checkboxes, e.g.: <form
I need some help with my jquery script. I have two select boxes. When
I need some help with zebra striping a table using jQuery. I want the
I am new to Jquery and need some help: I have a div, I
Need some help to solve this. I have a gridview and inside the gridview
Need some help with this problem in implementing with XSLT, I had already implemented

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.