Page Title: JavaScript Archives - JavaScript Dev

  • This webpage makes use of the TITLE meta tag - this is good for search engine optimization.

Page Description:

  • This webpage DOES NOT make use of the DESCRIPTION meta tag - this is NOT GOOD for search engine optimization.

Page Keywords:

  • This webpage DOES NOT make use of the KEYWORDS meta tag - whilst search engines nowadays do not put too much emphasis on this meta tag including them in your website does no harm.

Page Text: Sometimes, we want to add file upload with PHP. In this article, we’ll look at how to add file upload with PHP. How to add file upload with PHP? To add file upload with PHP, we can use fetch on client side and then get the uploaded file from $_FILES with PHP. For instance, we write to add a file input. Then we write async function saveFile() { const formData = new FormData(); formData.append("file", sortpicture.files[0]); await fetch("/uploads", { method: "POST", body: formData }); } to add the saveFile function. In it, we create a FormData object and add an entry with key 'file' into it. Then we call fetch with the URL and an object with the request method and the body set to formData. Then in our PHP code, we add '; } else { move_uploaded_file($_FILES['file']['tmp_name'], 'uploads/' . $_FILES['file']['name']); } ?> to call get the file with $_FILES['file']. And we save the upload file with move_uploaded_file($_FILES['file']['tmp_name'], 'uploads/' . $_FILES['file']['name']) to save the uploaded file to the path we have in the 2nd argument. Conclusion To add file upload with PHP, we can use fetch on client side and then get the uploaded file from $_FILES with PHP. Posted on

  • This webpage has 242 words which is NOT between the recommended minimum of 250 words and the recommended maximum of 2500 words.

Header tags:

  • It appears that you are using header tags - this is a GOOD thing!

Spelling errors:

  • This webpage has 2 words which may be misspelt.

Possibly mis-spelt word: PHP

Suggestion: PP
Suggestion: HP
Suggestion: PEP
Suggestion: PHI
Suggestion: PIP
Suggestion: PAP
Suggestion: POP
Suggestion: PUP
Suggestion: P HP
Suggestion: PHD
Suggestion: PH

Possibly mis-spelt word: formData

Suggestion: PP
Suggestion: HP
Suggestion: PEP
Suggestion: PHI
Suggestion: PIP
Suggestion: PAP
Suggestion: POP
Suggestion: PUP
Suggestion: P HP
Suggestion: PHD
Suggestion: PH

Broken links:

  • This webpage has 6 broken links.

Broken image links:

  • This webpage has no broken image links that we can detect - GOOD WORK.

CSS over tables for layout?:

  • It appears that this page uses DIVs for layout this is a GOOD thing!

Last modified date:

  • We were unable to detect what date this page was last modified

Images that are being re-sized:

  • This webpage has no images that are being re-sized by the browser - GOOD WORK.

Images that are being re-sized:

  • This webpage has no images that are missing their width and height - GOOD WORK.

Mobile friendly:

  • After testing this webpage it appears to be mobile friendly - this is a GOOD thing!

Links with no anchor text:

  • This webpage has no links that are missing anchor text - GOOD WORK.

W3C Validation:

Print friendly?:

  • It appears that the webpage does NOT use CSS stylesheets to provide print functionality - this is a BAD thing.

GZIP Compression enabled?:

  • It appears that the serrver does NOT have GZIP Compression enabled - this is a NOT a good thing!