Jump to content

An Error Occurred Dealing With The File Upload: File Size Exceeds Form Max Allowed Size. Please Make Sure You Selected A Valid File.


Recommended Posts

  • 4 weeks later...

I'm having this same issue and I have verified that the var, var/tmp, var/cache folders are all set to 777. I cannot find any useful information to help me resolve this issue. I've even tried changing the Webserver Local Banner Storage Settings to various other folders to see if I could get it to write the file but I get the same useless error message no matter what. I know it worked when I first installed the site but no dice now that we are actually trying to load all of our ads to it.

Link to comment
Share on other sites

HI Aalsysadmin,

What platform do you run it from? I am running it from OSX-Yosemite, mysql-5-6-21, Apache-2, PHP-5-5-14.

My initial install worked and all banners could be uploaded, but now I am having this same message on 4 different Yosemite platforms.

No one replied so I guess its just you and me with this issue.

Link to comment
Share on other sites

RHEL 6, MySQL 5.6.14, Apache 2.X, PHP 5.6.X - The images directory is on a SAN device with a mapped directory to this server. I have lots of other admins that do this so I know that's not the issue.

 

I had to modify the code to deal with the load balancing behind an HTTPS port even though my local Apache installations are all HTTP. The admin is loading just fine. I use rsync to sync up the rest of my code for the site, but the DB and images directories are shared by all the apache sites.

 

Beyond that, it worked when first installed but like yours has wiped the ability to upload images to the local filesystem.

 

I went back and reapplied the permissions that they specify during the installation just to be sure it wasn't that something had changed in that regard but that seems to have made zero difference. The documentation is horrific, and I really wish someone with some knowledge of the code would respond with assistance since I'm not a code person beyond very rudimentary skills.

Link to comment
Share on other sites

  • 4 months later...

I suppose it smth with revive. I tested this simple code and it works well . But with revive I can't upload!!!

 

 

<form enctype="multipart/form-data" action="form.php" method="post">
<input type="hidden" name="20000000000000000" value="30000">
Send this file: <input name="userfile" type="file">
<input type="submit" value="Send File">
</form>
 
<?php
$uploaddir = '/var/clients/revive/www/images/';
if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploaddir . 
$_FILES['userfile']['name'])) {
    print "File is valid, and was successfully uploaded.";
} else {
    print "There some errors!";
}
?>
Link to comment
Share on other sites

I'VE SOLVED THE PROBLEM!

 

This prtoblem appears only if in PHP setting of your server variables max_upload_size & max_post_size are big. At least more then 1 GB.

 

Solution

 

You need to reduce max_upload_size (max_post_size) in settings of PHP on your server (host). For example, in your php.ini file.

Link to comment
Share on other sites

That's not really an option for people who use php.ini for more than just this one application and need those settings to be larger than 1 GB to handle the other applications. Surely there is a setting in the programming somewhere that has this hard limit set that can be changed???

Link to comment
Share on other sites

  • 9 months later...

That's not really an option for people who use php.ini for more than just this one application and need those settings to be larger than 1 GB to handle the other applications. Surely there is a setting in the programming somewhere that has this hard limit set that can be changed???

No, there isn't! That's how PHP works.

However, with a web server like Apache, you can do things like configure PHP settings on a host by host basis, so that your PHP settings differ for different applications. 

That's well beyond the remit of the Revive Adserver forums, however - please see the PHP / Apache documentation!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...