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 8236887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T19:16:55+00:00 2026-06-07T19:16:55+00:00

I am just trying to add a simple text field for a title and

  • 0

I am just trying to add a simple text field for a title and have it posted to uploadify.php, but it’s not working.

Javascript:

$(function() {
    $("#file_upload").uploadify({
        'formData'      : {"title": $("#title").val()},
        'swf'           : '/uploadify/uploadify.swf',
        'uploader'      : '/uploadify/uploadify.php',
        'onUploadStart' : function(file) {
                $("#file_upload").uploadify("settings", "title");
        }
    });
});

HTML:

<input type="text" id="title" name="title" />
<input type="file" name="file_upload" id="file_upload" />

If I replace {"title": $("#title").val()} with {"title": "title"} it works fine but then it’s not dynamic, it’s just set to title. How can I get it passing the actual text field data? I’ve tried several things myself, but the Uploadify documentation is pretty thin.

  • 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-07T19:16:57+00:00Added an answer on June 7, 2026 at 7:16 pm

    The Uploadify documentation found here says otherwise, but this seems to be the correct way to utilize dynamic fields with Uploadify. In any case, it works.

    $("#file_upload").uploadify({
            'swf'           : '/uploadify/uploadify.swf',
            'uploader'      : '/uploadify/uploadify.php',
            'onUploadStart' : function(file) {
                    $("#file_upload").uploadify("settings", 'formData', {'title' : $("#title").val()});
            }
        });
    });
    

    Edit: It isn’t required to have the formData declared in the first $("#file_upload").uploadify() so I removed it. Include it there as well if you want to use it to set default values.

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

Sidebar

Related Questions

I am trying a very simple override. I just want to add one line
I have a very simple Swing GUI with just a JTetxtArea. I am trying
I'm working on a simple AJAX chat add-on for my PHP application so I
I'm trying to add a second table to my application but I'm not having
I am trying to add an simple Textblock as adorment to a control. But
I'm just trying to add 2 columns to customer table alter table CUSTOMER ADD
I am trying to add/remove UILabels to a ScrollView. The adding takes place just
I'm just new to Zend and currently I'm trying to add a dash(-) to
just trying to test for equality in this piece of code, but getting a
I'm trying to save simple text data in my app using this code from

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.