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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:25:10+00:00 2026-06-01T07:25:10+00:00

I have one for with 4-5 fields and one Upload button for Uploading One

  • 0

I have one for with 4-5 fields and one Upload button for Uploading One document. I have also created Tables(Service.xml) for the same. I successfully upload the document into Document Library of the Liferay and also done with Database but when i combine both this together i started getting errors.

Here is the Code:-

<portlet:actionURL var="uploadRFPUrl" name="uploadRFP"></portlet:actionURL>

<form action="<%= uploadRFPUrl %>" method="POST" id="form1" enctype="multipart/form-data">

    <input name="redirect" value="<%= redirect %>" type="hidden"></input>


    RFP Name :- <input name="rfpName"></input><br/><br/>

    Client Name :- <input name="clientName"></input><br/><br/>

    Client Region :-<input name="clientRegion"></input><br/><br/>

    Description :- <input name="description"></input><br/><br/>

    Previous Related Project : -<input name="prevRelatedProjects"></input> <br/><br/>

    RFP DOC ID :- <input name="rfpDocId"></input> <br/><br/>

    Due Date :- <input name="dueDate" /><br/><br/>

<input type="file" name="rfpdocPath" />

When I run it is not storing the data but when i remove enctype=”multipart/form-data” from the form it stores the data into database but it gives me error. So Where i am making mistake please if anyone has idea let me know. Its urgent for me to complete it today..

Thanks

  • 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-01T07:25:11+00:00Added an answer on June 1, 2026 at 7:25 am

    You need to use

    UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(request);
    

    from this u can get the form attributes value..

    example

    ParamUtil.getLong(uploadRequest, "txtId")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one form with several text fields and one button. When i enter
I have one XML with 20 fields in my case based on type we
I have a model that contains one-to-one fields to other models. I over rid
I have one table, t1, which has fileds called userid, week and year fields.
I have a table in database that is having some fields one of which
I have a gridview that displays items details, I added two template fields one
I have a form and one of the fields is a check-all-that-applies type field
I have a database table and one of the fields (not the primary key)
I have a Oracle database and one of the fields is a date range
I have a php page where users may enter data into fields inside a

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.