Solucionada preview de archivos de texto
Sin embargo tengo mis dudas sobre si la implementacion es correcta
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
{% if file.type.name == 'Image' %}
|
||||
<img class="preview" src="{{ url_for('files.uploaded_file', filename=file.filename) }}">
|
||||
{% elif file.type.name == 'Code' %}
|
||||
<pre><code>{{file.filename}}</code></pre>
|
||||
<pre><code>{{content}}</code></pre>
|
||||
{% endif %}
|
||||
|
||||
{% if g.user %}
|
||||
|
||||
Reference in New Issue
Block a user