Skip to content

youssefwalid7/android-nodejs-image-upload

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

🙌 Upload Image from Android to Nodejs

When I was developing my senior year project at university, I faced a problem in uploading file (image file in my case) from Android to Nodejs server. After grinding for continous hours, I was able to find full working solution.

🔥 Steps:

  1. Clone this Repository. You will get both android and nodejs code.
  2. Open Nodejs folder and install required dependencies
npm install
  1. Run nodejs code
node index

or just

node
  1. Open Android code
  2. Change IP address (if required) in MainActivity.java variable named "UPLOAD_URL". Which look something like this
String UPLOAD_URL = "http://localhost:3000/api/image";
  1. Run app on your Android device.
  2. That's it.

Note: My Android Studio Version is 3.0, Gradle Build v3.3, Tested on Nexus 6p on Android P. It's working perfectly on my device 💯.

License

Licensed Under GPL 3.0.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Java 88.4%
  • JavaScript 11.6%