How to use jquery fileupload code for my custom field?

Hi Dear,i want to use jquery fileupload function and handler for my custom form filed. any help in this regards will highly appreciated.

my requirement

$("#id_form-fields").fileupload({
  ---------------------
  ---------------------
  ---------------------
}) ;

this applies only on my custom form field same as in phpmake for file upload. any js function like ew.fileupload( parameter1, parameter2, parameter3 ) etc.
thank you for feedback.Regards

Is it your own field in your Custom File? Or is it a Custom Field in a regular table? Please explain more clearly.

Case1: In custom file where i want jquery file-uploader component to be attached with the filed and upload the same as maker do. single file/multiple file etc.
Case2: Custom field in regular table.

These both scenarios required. but preferably case 1 is most important at this stage. dont want to write the custom uploader again for jquery fileupload etc. thank you for your valued answer and way forward.

Case 1: Better use your own code, see jQuery File Upload docs, otherwise you need to copy code from PHPMaker generated scripts yourself.Case 2: A Custom Field is not updatable, but you can still setup it as an file upload field (so you don’t need to write your own code). If your page is used in the PHPMaker generated application, other files are already there, you only need to copy the generated HTML for the field in the Add/Edit page.

i copy the same code as maker generated for form field but no auto upload function working. kindly tell me what to do next that fileuploader attach to this field. thank you once againf or your support

Choose...