in reply to extension check on upload script doesn't do anything
unless(@allowedext = $extension)That is an assignment, whereas you probably wanted some kind of comparison. You clobber all elements of the array, then set the array to a single value. Since the assignment is (probably) always successful, you never enter the unless clause. I think you really want a hash like GrandFather suggested.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: extension check on upload script doesn't do anything
by edwardra3 (Initiate) on Feb 23, 2011 at 18:15 UTC |