1
here is my single upload it is working i got the snippet from XOOPS snippets in developer section
how can upload more then one image
le="color: #000000"><?php $thumb = $_POST['thumb']; include_once XOOPS_ROOT_PATH . '/class/uploader.php'; $allowed_mimetypes = array('image/gif', 'image/jpeg', 'image/pjpeg', 'image/x-png', 'image/png'); $maxfilesize = '200000'; $maxfilewidth = '500'; $maxfileheight = '500'; $uploader = new XoopsMediaUploader(XOOPS_ROOT_PATH . "/modules/news/uploads", $allowed_mimetypes, $maxfilesize, $maxfilewidth, $maxfileheight); if ($uploader->fetchMedia($_POST["xoops_upload_file"][0])) { if (!$uploader->upload()) { echo $uploader->getErrors(); } else { echo '<h4>File uploaded successfully!</h4>'; echo 'Saved as: ' . $uploader->getSavedFileName() . '<br />'; echo 'Full path: ' . $uploader->getSavedDestination(); } } else { echo $uploader->getErrors(); }
with this code
please help