html upload image
<input type="file" accept="image/*" />
how to print image just on side where upload php
<?php $galleryPath = "Gallery/"; $descriptions = new DOMDocument("1.0"); $descriptions->appendChild($descriptions->createElement("files")); while (($uploadedFile = UploadedFiles::fetchNext()) != null){ $sourceFile = $uploadedFile->getSourceFile(); $sourceFileName = $sourceFile->getFileName(); $descriptionsFile = $descriptions->createElement("file"); $descriptionsFile->setAttribute("name", $sourceFileName); $descriptionsFile->setAttribute("width", $sourceFile->getWidth()); $descriptionsFile->setAttribute("height", $sourceFile->getHeight()); $descriptionsFile->setAttribute("description", $uploadedFile->getDescription()); $descriptions->documentElement->appendChild($descriptionsFile); $sourceFile->save($galleryPath. "/" .$sourceFileName); } $descriptions->save("Descriptions.xml");?>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us