switching to using url_for to handle the url correctly on breadcube

master
mb 12 months ago
parent 969b469a92
commit 236f963356

@ -18,9 +18,9 @@
</style>
</head>
<body>
{% for image in images %}<a href="/image/{{image}}"><img src="{{ image }}"></a>{% endfor %}
{% for image in images %}<a href="{{ url_for('zoomedimage', imgpath=image|replace('static/img/', '')) }}"><img src="{{ image }}"></a>{% endfor %}
<form action="/upload/" method="POST" enctype="multipart/form-data">
<form action="{{ url_for('upload_file') }}" method="POST" enctype="multipart/form-data">
<label for="tile">Choose an image to upload:</label>
<input type="file"
id="tile" name="tile" required>

@ -5,7 +5,7 @@
{% for image in images %}
<img src="{{ image|replace('./', '/') }}">
{% endfor %}
<form action="/upload2/{{image}}" method="POST" enctype="multipart/form-data">
<form action="{{ url_for('upload2_file', image=image) }}" method="POST" enctype="multipart/form-data">
<label for="tile">Choose an image to upload:</label>
<input type="file"
id="tile" name="tile" required>

Loading…
Cancel
Save