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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:46:18+00:00 2026-06-07T04:46:18+00:00

i need to upload a file doc or pdf or rich text through jquery

  • 0

i need to upload a file doc or pdf or rich text through jquery and smarty

i try to pass the file in jquery is given below

window.location.href= sitePath+'download?p='+$('#file').val();

but the p doesn’t have value. how to get the file path or name and how can stored in server

in controller i write just pass the query to model is given below

$model=new download();
$id=$model->upload($param);

and i can’t develop the model code….

please help me

  • 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-07T04:46:19+00:00Added an answer on June 7, 2026 at 4:46 am

    You can’t send files like that.

    You should either submit a form with enctype="multipart/form-data" or use some AJAX uploader (which uses form submit to iframe and then stores a file using PHP script).

    EDIT: Some references

    • http://www.w3schools.com/php/php_file_upload.asp – tutorial on how to upload a file using PHP

    • http://valums.com/ajax-upload/ – example of ajax uploader.

    EDIT2: The problem is not with your model code but with the way you try to submit a file.

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

Sidebar

Related Questions

UPDATED See post #3 below. There is a need to upload a file to
I need to upload my app file through Application Loader 2.7. But first I
I have a script that lets the user upload text files (PDF or doc)
i need to upload file with jquery. i now about uploadify plugin, but i
I need to upload a file through a form. The form has other fields
I need simple search-replace in doc file exported from google doc. and than upload
Suppose user will upload doc or docx file through our asp.net web UI and
I need to upload a file from the client to an asp.net page. The
I need to upload a file in C# using an httpwebrequest. I don't need
I need to upload .dat file from jsp page. I am using struts. I

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.