home.html
<form action="" method="POST" enctype="multipart/form-data">
{% csrf_token %}
<input type="file" name = 'img' >
<button type="submit"> Post On Facebook </button>
</form>
views.py
def home(request):
if request.method == 'POST':
# get the image absolute location
return render(request,'home.html')
I want the file path, so that I can upload the file on facebook using GraphAPI.