Commit e773eee7 by Vuk Lazovic

SADA RADI JOS BOLJE

parent a55534d8
...@@ -4,13 +4,11 @@ ...@@ -4,13 +4,11 @@
<option name="autoReloadType" value="ALL" /> <option name="autoReloadType" value="ALL" />
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="6e82c7f1-3949-40e2-bc26-7eb50b36f993" name="Default Changelist" comment="login/logout/anonymous user..."> <list default="true" id="6e82c7f1-3949-40e2-bc26-7eb50b36f993" name="Default Changelist" comment="UPLOAD sada radi">
<change beforePath="$PROJECT_DIR$/.idea/shelf/Uncommitted_changes_before_Update_at_18_9_2022__18_26__Default_Changelist_.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/shelf/Uncommitted_changes_before_Update_at_18_9_2022__18_26__Default_Changelist_.xml" afterDir="false" /> <change afterPath="$PROJECT_DIR$/unknown.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/shelf/Uncommitted_changes_before_Update_at_18_9_2022__20_08__Default_Changelist_.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/shelf/Uncommitted_changes_before_Update_at_18_9_2022__20_08__Default_Changelist_.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/shelf/Uncommitted_changes_before_Update_at_19_9_2022__15_07__Default_Changelist_.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/shelf/Uncommitted_changes_before_Update_at_19_9_2022__15_07__Default_Changelist_.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/app/config/Bezbednost.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/app/config/Bezbednost.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/app/usluga/web/MainKontroler.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/app/usluga/web/MainKontroler.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/main/java/app/usluga/web/MainKontroler.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/app/usluga/web/MainKontroler.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/resources/static/images/uploads/viber_image_2022-05-26_11-52-21-814.jpg" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/resources/templates/dodaj.html" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/templates/dodaj.html" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/main/resources/templates/dodaj.html" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/templates/dodaj.html" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
...@@ -47,8 +45,8 @@ ...@@ -47,8 +45,8 @@
</option> </option>
<option name="myId2Visible"> <option name="myId2Visible">
<map> <map>
<entry key="com.haulmont.jpb.jpaInspector" value="true" /> <entry key="com.haulmont.jpb.jpaInspector" value="false" />
<entry key="com.haulmont.jpb.jpaPalette" value="true" /> <entry key="com.haulmont.jpb.jpaPalette" value="false" />
<entry key="com.haulmont.jpb.jpaStructure" value="false" /> <entry key="com.haulmont.jpb.jpaStructure" value="false" />
</map> </map>
</option> </option>
...@@ -199,7 +197,8 @@ ...@@ -199,7 +197,8 @@
<workItem from="1663587883995" duration="11000" /> <workItem from="1663587883995" duration="11000" />
<workItem from="1663589644471" duration="4472000" /> <workItem from="1663589644471" duration="4472000" />
<workItem from="1663594548080" duration="456000" /> <workItem from="1663594548080" duration="456000" />
<workItem from="1663598082766" duration="1582000" /> <workItem from="1663598082766" duration="1751000" />
<workItem from="1663600055785" duration="984000" />
</task> </task>
<task id="LOCAL-00001" summary="dodata ulogovana verzija"> <task id="LOCAL-00001" summary="dodata ulogovana verzija">
<created>1663501497955</created> <created>1663501497955</created>
...@@ -215,7 +214,14 @@ ...@@ -215,7 +214,14 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1663590651571</updated> <updated>1663590651571</updated>
</task> </task>
<option name="localTasksCounter" value="3" /> <task id="LOCAL-00003" summary="UPLOAD sada radi">
<created>1663599823537</created>
<option name="number" value="00003" />
<option name="presentableId" value="LOCAL-00003" />
<option name="project" value="LOCAL" />
<updated>1663599823537</updated>
</task>
<option name="localTasksCounter" value="4" />
<servers /> <servers />
</component> </component>
<component name="TimeTrackingManager"> <component name="TimeTrackingManager">
...@@ -277,7 +283,8 @@ ...@@ -277,7 +283,8 @@
<option name="ADD_EXTERNAL_FILES_SILENTLY" value="true" /> <option name="ADD_EXTERNAL_FILES_SILENTLY" value="true" />
<MESSAGE value="dodata ulogovana verzija" /> <MESSAGE value="dodata ulogovana verzija" />
<MESSAGE value="login/logout/anonymous user..." /> <MESSAGE value="login/logout/anonymous user..." />
<option name="LAST_COMMIT_MESSAGE" value="login/logout/anonymous user..." /> <MESSAGE value="UPLOAD sada radi" />
<option name="LAST_COMMIT_MESSAGE" value="UPLOAD sada radi" />
</component> </component>
<component name="editorHistoryManager"> <component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/src/main/java/app/model/Korisnik.java"> <entry file="file://$PROJECT_DIR$/src/main/java/app/model/Korisnik.java">
......
...@@ -24,7 +24,10 @@ public class MainKontroler { ...@@ -24,7 +24,10 @@ public class MainKontroler {
{ {
String fileName=file.getOriginalFilename(); String fileName=file.getOriginalFilename();
try { try {
file.transferTo(new File("C:\\Users\\vuk\\Desktop\\awesomelands\\src\\main\\resources\\static\\images\\uploads\\"+fileName)); String putanja=System.getProperty("user.dir");
file.transferTo(new File(putanja+"\\src\\main\\resources\\static\\images\\uploads\\"+fileName));
} catch (IOException e) { } catch (IOException e) {
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build(); return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();
} }
......
...@@ -2163,14 +2163,11 @@ template { ...@@ -2163,14 +2163,11 @@ template {
method:'POST', method:'POST',
body:formData body:formData
}); });
if (response.status==200) if (response.status!=200)
{ {
alert("DOBRO JE"); alert("NEUSPESNA REGISTRACIJA OGLASA");
}
else
{
alert("NIJE DOBRO");
} }
} }
</script> </script>
......
Markdown is supported
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