
Do not make public/uploadFiles
Yobi was making public/uploadFiles when it starts, but the directory looks not to be used.
@e8548b191d749c6507f6641b1e6404619b629003
--- .gitignore
+++ .gitignore
... | ... | @@ -11,7 +11,6 @@ |
11 | 11 |
.idea* |
12 | 12 |
*.iml |
13 | 13 |
dist |
14 |
-public/uploadFiles |
|
15 | 14 |
uploads |
16 | 15 |
repo/ |
17 | 16 |
RUNNING_PID |
--- app/controllers/Application.java
+++ app/controllers/Application.java
... | ... | @@ -52,7 +52,6 @@ |
52 | 52 |
} |
53 | 53 |
|
54 | 54 |
public static Result init() { |
55 |
- makeUploadFolder(); |
|
56 | 55 |
makeTestRepository(); |
57 | 56 |
return redirect(routes.Application.index()); |
58 | 57 |
} |
... | ... | @@ -61,10 +60,6 @@ |
61 | 60 |
|
62 | 61 |
public static Result jsMessages() { |
63 | 62 |
return ok(messages.generate("Messages")).as("application/javascript"); |
64 |
- } |
|
65 |
- |
|
66 |
- private static void makeUploadFolder() { |
|
67 |
- new File("public/uploadFiles/").mkdir(); |
|
68 | 63 |
} |
69 | 64 |
|
70 | 65 |
private static void makeTestRepository() { |
--- app/utils/Constants.java
+++ app/utils/Constants.java
... | ... | @@ -28,8 +28,6 @@ |
28 | 28 |
public static final String TITLE = "title"; |
29 | 29 |
public static final String DESCRIPTION = "description"; |
30 | 30 |
|
31 |
- public static final String DEFAULT_LOGO_PATH = "public/uploadFiles/"; |
|
32 |
- |
|
33 | 31 |
public static final String RESOURCE_KEY_DELIM = "_"; |
34 | 32 |
public static final String ADMIN_LOGIN_ID = "admin"; |
35 | 33 |
|
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?