Fakultas Ilmu Komputer UI

Commit 9a6af7fa authored by MUHAMMAD AAQIL ABDULLAH's avatar MUHAMMAD AAQIL ABDULLAH
Browse files

Add file size limit

parent d33751ab
......@@ -25,7 +25,7 @@ public class Articles {
@Column(nullable = false, columnDefinition ="TEXT", name = "description", length = Integer.MAX_VALUE)
private String content;
@Column(name="encode",columnDefinition="text", length=10485760)
@Column(name="encode",columnDefinition="text", length=128005)
private String img;
@Column(name="image_id")
......
......@@ -35,7 +35,7 @@ public class Book {
@Column(name = "price", nullable = false)
private float price;
@Column(name="encode",columnDefinition="text", length=10485760)
@Column(name="encode",columnDefinition="text", length=128005)
private String img;
@ManyToMany
......
......@@ -14,6 +14,9 @@ admin.username = ${ADMIN_USERNAME}
admin.password = ${ADMIN_PASSWORD}
admin.email = ${ADMIN_EMAIL}
spring.servlet.multipart.max-file-size=128KB
spring.servlet.multipart.max-request-size=128KB
spring.jpa.hibernate.ddl-auto=create-drop
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
server.error.whitelabel.enabled=false
......
......@@ -13,7 +13,10 @@ admin.username = ${ADMIN_USERNAME}
admin.password = ${ADMIN_PASSWORD}
admin.email = ${ADMIN_EMAIL}
spring.jpa.hibernate.ddl-auto=create-drop
spring.servlet.multipart.max-file-size=128KB
spring.servlet.multipart.max-request-size=128KB
spring.jpa.hibernate.ddl-auto=update
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
server.error.whitelabel.enabled=false
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment