python - get input file name and file extention using flask -


का कहना है कि मेरे पास & lt; input name = "upload" type = "file" & gt; और मैं picture.jpg को अपलोड कर रहा हूं। सवाल यह है कि मैं फाइल का नाम + extention कैसे प्राप्त करूं? दूसरे शब्दों में request.files.filename या request.upload.filename

जवाब मिला request.files ['upload']। फ़ाइल नाम फ़्लास्क में फ़ाइल नाम और विस्तार देता है


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

c# - Chart control: Design messed Up after clearing and re-adding Y-Values -

xml - XMLStarlet - UTF-8 Nordic characters -