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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:48:23+00:00 2026-06-15T18:48:23+00:00

I am making some kind of update management for my private android app with

  • 0

I am making some kind of update management for my private android app with PHP. The plan is that I have a HTML form where I select apk file and version of application. When I upload app to my server it would be placed in apk folder and renamed. The problem is that I can’t get file uploaded to server. It keeps showing “There is error”. Apk folder have 777 rights.

HTML form:

<form action="android_u.php" method="post" enctype="multipart/form-data">
        <table cellspacing="0" border="0" width="680" style="margin-top:25px;">
            <tr>
                <td><b>APK file:</b></td>
                <td><input type="file" name="apk" placeholder="APK file..." /></td>
            </tr>
            <tr>
                <td><b>Version:</b></td>
                <td><input type="text" name="version" placeholder="Version..." /> (Example: 1.1)</td>
            </tr>
        </table>
        <input type="image" id="upload" style="margin-left: 580px;" src="templates/images/spacer.png" />
    </form>

PHP code:

$version = $_REQUEST['version'];

$ver = str_replace(".", "-", $version);

$target_path = "/apk/ind-" . $ver . ".apk"; 
$file = "ind-" . $ver . ".apk";

if(move_uploaded_file($_FILES['apk']['tmp_name'], $target_path)) {
$msg = "<div class='msg2'>File uploaded</div>";

$day = date("j");
$month = date("n");
$year = date("Y");
$hour = date("G");
$minute = date("i");

$query = "INSERT INTO android (version, user_id, prenosi, file, year, month, day, hour, minute) VALUES ('$verzija', '$id', '0', '$file', '$year', '$month', '$day', '$hour', '$minute')";
mysql_query($query);

} else {
    $msg = "<div class='msg2'>Error</div>";
}
  • 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-15T18:48:23+00:00Added an answer on June 15, 2026 at 6:48 pm

    Problem solved, thank you for helping.

    I changed upload_max_filesize in php.ini from 50MB to 50M and it works.

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

Sidebar

Related Questions

I'm making some kind of movie with a webpage. For that I have to
I am interested in making some sort of HTML page that displays the name
Is it possible for an iPhone app to stay dormant while making some kind
I am making an app for some people and they want to instantly update
I'm making some kind of image viewer/editor program, that would work on all the
I'm having some kind of problems with one thing, i'm making an app and
I'm trying to implement some kind of caching in a PHP script that will
Is it possible to make some kind of link from SQL to Excel making
While making some final tests of a class-library that I'm writing for Windows Mobile
I'm making some game, and I have made it pretty much all, but not

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.