Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education in INDIA
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Manas
Education in INDIA
Commits
70f61309
Commit
70f61309
authored
Nov 23, 2022
by
Manas Gabani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
distribution logical error resolved in classrooms and facilities page
parent
aa02f7c0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
41 deletions
+0
-41
templates/submit_display.html
templates/submit_display.html
+0
-41
No files found.
templates/submit_display.html
deleted
100644 → 0
View file @
aa02f7c0
<html>
<head>
<title>
Python Flask Upload and display image
</title>
<link
rel=
"stylesheet"
href=
"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"
/>
<script
src=
"https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"
></script>
</head>
<body>
<p><h1
align=
"center"
>
Python Flask Upload and display image
</h1></p>
<div
class=
"container"
>
<div
class=
"row"
>
<h2>
Select a file to upload
</h2>
<p>
{% with messages = get_flashed_messages() %}
{% if messages %}
<ul>
{% for message in messages %}
<li>
{{ message }}
</li>
{% endfor %}
</ul>
{% endif %}
{% endwith %}
</p>
{% if filename %}
<div>
<img
src=
"{{ url_for('display_image', filename=filename) }}"
>
</div>
{% endif %}
<form
method=
"post"
action=
"/"
enctype=
"multipart/form-data"
>
<dl>
<p>
<input
type=
"file"
name=
"file"
class=
"form-control"
autocomplete=
"off"
required
>
</p>
</dl>
<p>
<input
type=
"submit"
value=
"Submit"
class=
"btn btn-info"
>
</p>
</form>
</div>
</div>
</body>
</html>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment