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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:35:31+00:00 2026-06-15T06:35:31+00:00

My web apps was deployed on embedded linux, and I used AppWeb as a

  • 0

My web apps was deployed on embedded linux, and I used AppWeb as a webserver.
I used Appweb 3.3.2, with Ejscript 1.1.2

And now, I want to upload a file by web browser to server. In Ejscript’s document (http://www.ejscript.org/products/ejs/doc-1/api/ejscript/index.html), I can use Request.files to get a buffer of file uploaded.

But when I uses Request.files, it had an error object NULL

There is my simple page upload html:

<html>
    <head>
        <title>Time Attendance Web Control</title>
    </head>
    <body>
        <form method="post" enctype="multipart/form-data" action="upFile.ejs">
            Database to upload: <input type="file" name="upfile">
            <br>
            <input type="submit" value="Upload">
        </form>
    </body>
</html>

And ejscript page to handle: upFile.ejs

<%
    var rq = new Request();
    write(rq.files['upfile'].size);  // I just write simple code to debug
%>

And this is error I got:

Error rendering: "upFile.ejs".

Object reference is null
Stack:
 [00] upFile.es, _Solo_upFileView.render, line 10 -> write(rq.files['upfile'].size);  // I just write simple code to debug
 [01] script, Controller.renderView, line 0 

Anybody help me, plz…
And who can give me an example ejscript page to save file upload to server…

Thanks,

Tidus Le

  • 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-15T06:35:33+00:00Added an answer on June 15, 2026 at 6:35 am

    You should not be creating your own Request object. That is created for you and accessible in the “request” variable.

    You can do:

    write(request.files.upfile.size)

    I’d also recommend you upgrade to Appweb 4 and Ejscript 2. Much more flexible.

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

Sidebar

Related Questions

I want to develop some web apps using Google app engine. I had deployed
I have a solutions based on 3 web apps that are deployed into the
For creating interactive web apps, Silverlight and Jquery (jqueryUI included) are used. Is there
Currently all web apps are deployed using seperate config files: <!-- <import bean.... production/>
I have a problem. I have two web apps deployed as wars. Let's call
I need to know if a web application deployed in a 64-bit server runs
I have two web application which are deployed in the same J2EE Application server.
I've deployed, after some struggle, a web-app on a (remote) Tomcat 5.5 server (Turnkey
I have a web application in asp.net 3.5 published in apps server.I have few
I have a CakePHP based web application deployed on Apache (LAMP stack). Now 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.