Uploading file not in right format
Posted on 2006-11-13
Hi, i'm using an apache web-based application to upload certain files. Anyway, the files must be in a certain format. The format should be <server>-<version#>.zip.
Let's say the service name is service. In the past I was able to put something like server.3.5.6.zip and it would work. (Or server.3_5_6.zip).
Well, we migrated to another physical linux server, same specs (Red Hat ES 3.0). Copied all the same files over. Now when i try an upload a file, it won't take any files with "dots" in them, I get a format error. For example server.3.5.6.zip will not work but server.3_5_6.zip.
I went to the location of the page and it calls a file called deployment.php and in there it says:
$regex_match = "$service-[0-9a-zA-Z_-]+\.zip" ;
$format_msg = "ERROR - File must be in the format: $service-version#.zip!" ;
I'm getting the format error. Now in the regex_match variable it doesn't say anything about a "." character. My question is, why was it working before? And how would I get it to accept "." in the version name?
The only difference between the old configuration and new one is that hte old was a virtual host while the new is the main (only) host.