PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, July 31, 2022

[FIXED] How to upload an image to server directory?

 July 31, 2022     database, file-upload, html, javascript, node.js     No comments   

Issue

I'm not sure if this is a bad idea, if it is please let me know, but I want a choose file input to upload to the server's directory. If that didn't make sense, let's say I have a folder for my website and in that I have a public folder and INSTEAD of using databases, upload the image we just submitted to the public folder. Oh and also, this is using node.js and html, no PHP please :)

I've just been doing research on image databases the past few days and couldn't find anything, cough, PHP. I'm trying my best not to pay for stuff as I'm broke.

Thanks, Alek


Solution

I think multer will help you. You can set the directory for saving your files.



Answered By - vitaliyirtlach
Answer Checked By - Robin (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing