Thanks alot Richard.
As you mention it I've had some encounters with the _ filenames... I did get
it to work after a fasion, but yes I took quite some headache to make it
work. For the JS part of the script I could just getElementById witch leave
me open for the name to use on my problems as you
On Mon, October 30, 2006 5:13 am, Børge Holen wrote:
> * First it insert an empty file field (hidden).
This seems silly, but whatever.
> * Second, I rename all files to an md5 hash.
> * Third, The md5 hash makes legal filenames witch enables my toolset
> to modify
> modify/validate my jpg.
And
On Monday 30 October 2006 06:08, Richard Lynch wrote:
> On Sat, October 28, 2006 4:06 pm, Børge Holen wrote:
> > I'm trying to validate wether or not to run the image check script.
> > however empty the file field(s) are This script is started... how do I
> > tell it
> > there is nothing here, go d
On Sat, October 28, 2006 4:06 pm, Børge Holen wrote:
> I'm trying to validate wether or not to run the image check script.
> however empty the file field(s) are This script is started... how do I
> tell it
> there is nothing here, go do other stuff.
> for both multiupload forms and single upload fo
Try this:
if(!isset($_FILES['userfile']['name'])
|| $_FILES['userfile']['error'] == UPLOAD_ERR_NO_FILE) {
// the file was not uploaded
}
else {
// do your thing,the file has been uploaded
}
Børge Holen wrote:
When I use a normal single file upload form; both of
I'm trying to validate wether or not to run the image check script.
however empty the file field(s) are This script is started... how do I tell it
there is nothing here, go do other stuff.
for both multiupload forms and single upload forms since they're supposed to
share this script. My logic tel
Are you just trying to tell whether the form has been submitted? Or
are you just trying to validate form data?
-- verify form submitted -
if (isset($_POST)) {
// form submitted, process data
} else {
// display form
}
---
This could also be omitted with the help of NOT use
echo irritating reason
exit
Witch would leave the script running to BREAK on switch out of it all =D
YES. Not an elegant solution... but beats whatever I'm doing right now.
On Saturday 28 October 2006 23:46, Børge Holen wrote:
> Ok. got that th
Ok. got that thanks.
But that leaves me a bit off to how to tell the script to leave it alone.
Is it possible to check it
or maby even better. Posible to not add an empty field in the submit.
The multifile submit I actually intended this script for, always send the
first field empty so later on
Børge Holen wrote:
When I use a normal single file upload form; both of these statements will
continue wether my form is empty or not, why?
if(!empty($_FILES)){
do som checking if its a jpg.
if not exit;
if(isset($_FILES)){
because it IS set and NOT empty.
$_FILES['file_uplo
10 matches
Mail list logo