SSPAdmin does not have the proper permissions to write to the albums folder. SSPAdmin tried to set the permissions for you, but was rejected. Please chmod this folder to 777"); @mkdir('./albums/'.$the_id, 0777) or die("
There is already an album folder with the name $the_id. Please go back and select another name."); $max_size = 1024*100; // the max. size for uploading mkdir('./albums/'.$the_id.'/lg/', 0777); $my_upload = new file_upload; $my_upload->upload_dir = realpath('./albums/'.$the_id.'/lg/') . '/'; // "files" is the folder for the uploaded files (you have to create this folder) $my_upload->extensions = array(".jpeg", ".jpg", ".JPEG", ".JPG", ".swf", ".SWF", ".FLV", ".flv"); // specify the allowed extensions here $my_upload->max_length_filename = 100; // change this value to fit your field length in your database (standard 100) $my_upload->the_temp_file = $_FILES['upload']['tmp_name']; $my_upload->the_file = $_FILES['upload']['name']; $my_upload->http_error = $_FILES['upload']['error']; if (!$my_upload->upload()) { $m = true; echo($my_upload->http_error); } else { $aName = $_POST['aName']; mysql_query("INSERT INTO $atbl (id, name, path) VALUES (NULL, '$aName', '$clean_name')") or die("Error".mysql_error()); $aid = mysql_insert_id(); mysql_query("INSERT INTO $itbl (id, aid, src) VALUES (NULL, $aid, '$my_upload->the_file')") or die("Error".mysql_error()); } ?>
There was an error uploading your files. Please check the documentation or the SSPAdmin forums.
Your image (the_file; ?>) was uploaded and a new album (named ) was created. Click here to edit it. You can also use the form below to add another image to this album.
SSPAdmin does not have the proper permissions to write to the albums folder. SSPAdmin tried to set the permissions for you, but was rejected. Please chmod this folder to 777"); $perms = substr(sprintf('%o', fileperms(realpath('./albums/'.$path.'/lg/'))), -4); if ($perms != '0777') @chmod(('albums/'.$path.'/lg/'), 0777) or die("
SSPAdmin does not have the proper permissions to write to the folder: albums/$path/lg/ SSPAdmin tried to set the permissions for you, but was rejected. Please chmod this folder to 777"); $my_upload->extensions = array(".jpeg", ".jpg", ".JPEG", ".JPG", ".swf", ".SWF", ".FLV", ".flv"); // specify the allowed extensions here $my_upload->max_length_filename = 100; // change this value to fit your field length in your database (standard 100) $my_upload->the_temp_file = $_FILES['upload']['tmp_name']; $my_upload->the_file = $_FILES['upload']['name']; $my_upload->http_error = $_FILES['upload']['error']; if (!$my_upload->upload()) { $m = true; } else { mysql_query("INSERT INTO $itbl (id, aid, src) VALUES (NULL, $aid, '$my_upload->the_file')") or die("Error".mysql_error()); } ?>
Your image (the_file; ?>) was uploaded and added to the following album:
Use the form below to upload a file to the following album:
Uploading...Please Wait