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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:01:19+00:00 2026-05-24T08:01:19+00:00

This jquery plugin allows you to turn any element into a file input element.

  • 0

This jquery plugin allows you to turn any element into a file input element. http://plugins.jquery.com/project/custom-file

But to actually upload the file, the only documentation i could found is this:

To upload the chosen file to a server you should then attach the input element to a form element

how can i do that?

  • 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-24T08:01:20+00:00Added an answer on May 24, 2026 at 8:01 am

    I think you need to create an html form and append the input to the form, and if you need to submit, you can do it via a submit button or via $.submit

        # from http://www.daimi.au.dk/~u061768/file-input.html
        <script type="text/javascript">
    $(function() {
        $('button').button().add('#foo, a').file().choose(function(e, input) {
            $(input).appendTo('#TheForm').
                             attr('name', 'a-name').
                             attr('id', 'an-id');
        });
    
    
    });
        </script>
        ...
        <form method="post" enctype="multipart/form-data" id="TheForm" action="/path/in/your/server/">
        <input type="submit" value="send">
        </form>
    

    Anyway this is not the best plugin for submiting the files via ajax.

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

Sidebar

Related Questions

In this link: http://css-tricks.com/snippets/jquery/jquery-plugin-template/ it has a line of code that says // Add
I am trying to use this jQuery plugin (jsTree) in one of my project.
Is there any jQuery plugin for progressive light glow effect like this ?
I'm using the jKey jQuery plugin on a current project. It just allows you
So I'm building a jQuery plugin for a project that allows the client to
I am building a custom jQuery plugin which allows the user to delete records
I am using the jQuery plugin idTabs [ [www.sunsean.com/idTabs][1] ] and it allows me
Is there a jQuery plugin that allows this?
I found this jquery plugin which does exactly what I need, but I want
I'm currently using this jQuery validate plugin and having an issue in IE where

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.