I’m having trouble uploading files from my administrative panel that was developed to allow an admin to add items to an online store. Any hints?
-Works fine when editing, but not when I try to add a new item.
[code]
[COLOR=Navy]Permission denied. Unable to copy file to ‘/mpmweb/images/store/inventory/'[/COLOR]
[code]
$path = “/mpmweb/images/store/inventory/”;
$upload_file_name = “imgurl”;
$acceptable_file_types = “image/gif|image/jpeg|image/pjpeg”;
$default_extension = “”;
$mode = 2;
$my_uploader = new uploader(‘en’);
$my_uploader->max_filesize(200000);
$my_uploader->max_image_size(410, 410);
if ($my_uploader->upload($upload_file_name, $acceptable_file_types, $default_extension)) {
$my_uploader->save_file($path, $mode);
}
if ($my_uploader->error) {
$errmsg = $my_uploader->error;
}
else {
createThumbnail($path, $my_uploader->file[‘name’], $path);
thanks