image uploading - HTML forms

Edited Question I’ve created a form for uploading an image file. It works(saves the file) fine if i accessed it through ‘Form Entry’ link in home. But it doesn’t save if i was to access the same form via Clinician Facing Dashboard’s Link (Even though it says data is saved). P.S. I am using app framework

It would be helpful to share the logs just incase case there is something useful there!

0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:44 +0530] “POST /openmrs/dwr/call/plaincall/DWRObsService.getObsByPatientConceptEncounter.dwr HTTP/1.1” 200 128 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:44 +0530] “POST /openmrs/dwr/call/plaincall/DWRObsService.getObsByPatientConceptEncounter.dwr HTTP/1.1” 200 128 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:44 +0530] “POST /openmrs/dwr/call/plaincall/DWRObsService.getObsByPatientConceptEncounter.dwr HTTP/1.1” 200 128 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:45 +0530] “POST /openmrs/dwr/call/plaincall/DWRObsService.getObsByPatientConceptEncounter.dwr HTTP/1.1” 200 127 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:50 +0530] “GET /openmrs/referenceapplication/home.page HTTP/1.1” 200 11626 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:50 +0530] “GET /openmrs/ms/uiframework/resource/uicommons/scripts/jquery-1.8.3.min.js?cache=1464665099069 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:50 +0530] “GET /openmrs/ms/uiframework/resource/uicommons/scripts/jquery-ui-1.9.2.custom.min.js?cache=1464665099069 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:50 +0530] “GET /openmrs/ms/uiframework/resource/uicommons/scripts/emr.js?cache=1464665099069 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:50 +0530] “GET /openmrs/ms/uiframework/resource/uicommons/scripts/knockout-2.1.0.js?cache=1464665099069 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:50 +0530] “GET /openmrs/ms/uiframework/resource/uicommons/scripts/jquery.simplemodal.1.4.4.min.js?cache=1464665099069 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:50 +0530] “GET /openmrs/ms/uiframework/resource/lfhcforms/scripts/handleViewMode.js?cache=1464665099069 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:50 +0530] “GET /openmrs/ms/uiframework/resource/uicommons/scripts/jquery.toastmessage.js?cache=1464665099069 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:50 +0530] “GET /openmrs/ms/uiframework/resource/uicommons/scripts/underscore-min.js?cache=1464665099069 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:50 +0530] “GET /openmrs/ms/uiframework/resource/hgu/scripts/handleViewMode.js?cache=1464665099069 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:50 +0530] “GET /openmrs/ms/uiframework/resource/uicommons/styles/styleguide/jquery-ui-1.9.2.custom.min.css?cache=1464665099069 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:50 +0530] “GET /openmrs/ms/uiframework/resource/uicommons/styles/styleguide/jquery.toastmessage.css?cache=1464665099069 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:50 +0530] “GET /openmrs/ms/uiframework/resource/referenceapplication/styles/referenceapplication.css?cache=1464665099069 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:50 +0530] “GET /openmrs/ms/uiframework/resource/lfhcforms/styles/lfhcforms.css?cache=1464665099069 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:50 +0530] “GET /openmrs/ms/uiframework/resource/hgu/styles/JsPedigrees.css?cache=1464665099069 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:50 +0530] “GET /openmrs/ms/uiframework/resource/uicommons/images/logo/openmrs-with-title-small.png HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:50 +0530] “GET /openmrs/ms/uiframework/resource/uicommons/images/spinner.gif HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:50 +0530] “GET /openmrs/ms/uiframework/resource/referenceapplication/fonts/opensans-regular-webfont.ttf HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:50 +0530] “GET /openmrs/ms/uiframework/resource/referenceapplication/fonts/fontawesome-webfont.woff?v=3.0.1 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:51 +0530] “GET /openmrs/coreapps/findpatient/findPatient.page?app=coreapps.findPatient HTTP/1.1” 200 12585 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:51 +0530] “GET /openmrs/ms/uiframework/resource/uicommons/styles/datatables/dataTables_jui.css?cache=1464665099069 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:51 +0530] “GET /openmrs/ms/uiframework/resource/uicommons/scripts/datatables/jquery.dataTables.min.js?cache=1464665099069 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:51 +0530] “GET /openmrs/ms/uiframework/resource/coreapps/scripts/patientsearch/patientSearchWidget.js?cache=1464665099069 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:51 +0530] “GET /openmrs/ms/uiframework/resource/coreapps/styles/patientsearch/patientSearchWidget.css?cache=1464665099069 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:51 +0530] “GET /openmrs/ms/uiframework/resource/uicommons/scripts/moment.min.js?cache=1464665099069 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:51 +0530] “GET /openmrs/ms/uiframework/resource/referenceapplication/fonts/opensans-bold-webfont.ttf HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:55 +0530] “GET /openmrs/coreapps/clinicianfacing/patient.page?patientId=7fd6aa0a-8770-4e70-9b3c-dc36f7764b5c HTTP/1.1” 200 52203 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:55 +0530] “GET /openmrs/ms/uiframework/resource/lfhcforms/scripts/visit/changeVisitType.js?cache=1464665099069 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:55 +0530] “GET /openmrs/ms/uiframework/resource/coreapps/scripts/custom/visits.js?cache=1464665099069 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:55 +0530] “GET /openmrs/ms/uiframework/resource/uicommons/scripts/datetimepicker/bootstrap-datetimepicker.min.js?cache=1464665099069 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:55 +0530] “GET /openmrs/ms/uiframework/resource/coreapps/scripts/patientdashboard/patient.js?cache=1464665099069 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:55 +0530] “GET /openmrs/ms/uiframework/resource/lfhcforms/scripts/visit/startVisit.js?cache=1464665099069 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:55 +0530] “GET /openmrs/ms/uiframework/resource/uicommons/scripts/datetimepicker/locales/bootstrap-datetimepicker.en_GB.js?cache=1464665099069 HTTP/1.1” 404 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:55 +0530] “GET /openmrs/ms/uiframework/resource/appointmentschedulingui/styles/miniPatientAppointments.css?cache=1464665099069 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:55 +0530] “GET /openmrs/ms/uiframework/resource/allergyui/styles/allergies.css?cache=1464665099069 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:55 +0530] “GET /openmrs/ms/uiframework/resource/coreapps/styles/patientHeader.css?cache=1464665099069 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:55 +0530] “GET /openmrs/ms/uiframework/resource/uicommons/styles/datetimepicker.css?cache=1464665099069 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:55 +0530] “GET /openmrs/ms/uiframework/resource/referenceapplication/fonts/icomoon.woff HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:15:55 +0530] “GET /openmrs/ms/uiframework/resource/referenceapplication/fonts/opensans-italic-webfont.woff HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:16:19 +0530] “GET /openmrs/htmlformentryui/htmlform/enterHtmlFormWithStandardUi.page?patientId=7fd6aa0a-8770-4e70-9b3c-dc36f7764b5c&visitId=809120ca-a524-4f9c-99dd-84dc1fc6b0e3&formUuid=67b203ef-8cb6-4c7a-b43d-8f38918aad40&returnUrl=%2Fopenmrs%2Fcoreapps%2Fclinicianfacing%2Fpatient.page%3FpatientId%3D7fd6aa0a-8770-4e70-9b3c-dc36f7764b5c%26 HTTP/1.1” 200 24838 0:0:0:0:0:0:0:1 - - [31/May/2016:09:16:19 +0530] “GET /openmrs/ms/uiframework/resource/uicommons/scripts/handlebars/handlebars.min.js?cache=1464665099069 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:16:19 +0530] “GET /openmrs/ms/uiframework/resource/uicommons/scripts/angular.min.js?cache=1464665099069 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:16:19 +0530] “GET /openmrs/ms/uiframework/resource/htmlformentryui/scripts/dwr-util.js?cache=1464665099069 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:16:19 +0530] “GET /openmrs/ms/uiframework/resource/uicommons/scripts/angular-resource.min.js?cache=1464665099069 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:16:19 +0530] “GET /openmrs/ms/uiframework/resource/htmlformentryui/scripts/htmlForm.js?cache=1464665099069 HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:16:19 +0530] “GET /openmrs/moduleResources/htmlformentry/htmlForm.js HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:16:19 +0530] “GET /openmrs/moduleResources/htmlformentry/htmlFormEntry.css HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:16:19 +0530] “GET /openmrs/moduleResources/htmlformentry/htmlFormEntry.js HTTP/1.1” 304 - 0:0:0:0:0:0:0:1 - - [31/May/2016:09:16:29 +0530] “GET /openmrs/htmlformentryui/htmlform/enterHtmlForm/checkIfLoggedIn.action? HTTP/1.1” 200 30 0:0:0:0:0:0:0:1 - - [31/May/2016:09:16:29 +0530] “POST /openmrs/htmlformentryui/htmlform/enterHtmlForm/submit.action?successUrl=%2Fopenmrs%2Fhtmlformentryui%2Fhtmlform%2FenterHtmlFormWithStandardUi.page%3FpatientId%3D7fd6aa0a-8770-4e70-9b3c-dc36f7764b5c%26visitId%3D809120ca-a524-4f9c-99dd-84dc1fc6b0e3%26formUuid%3D67b203ef-8cb6-4c7a-b43d-8f38918aad40%26returnUrl%3D%2Fopenmrs%2Fcoreapps%2Fclinicianfacing%2Fpatient.page%3FpatientId%3D7fd6aa0a-8770-4e70-9b3c-dc36f7764b5c%26%26 HTTP/1.1” 200 59 0:0:0:0:0:0:0:1 - - [31/May/2016:09:16:30 +0530] “GET /openmrs/coreapps/clinicianfacing/patient.page?patientId=7fd6aa0a-8770-4e70-9b3c-dc36f7764b5c&&encounterId=21 HTTP/1.1” 200 53048 0:0:0:0:0:0:0:1 - - [31/May/2016:09:16:30 +0530] “GET /openmrs/ms/uiframework/resource/uicommons/scripts/datetimepicker/locales/bootstrap-datetimepicker.en_GB.js?cache=1464665099069 HTTP/1.1” 404 -



HTML-Form

<htmlform formUuid="67b203ef-8cb6-4c7a-b43d-8f38918aad40"
	formName="Pedigree_Diagram_Save_Form" formVersion="1.0" formAddMetadata="yes"
	formUILocation="patientDashboard.overallActions" formOrder="10"
	formIcon="icon-user" formShowIf="" formDisplayStyle="Standard" formEncounterType="30fca529-f743-44e9-91cc-e1d520def0bb">

<macros>
		paperFormId = (Fill this in)
		headerColor =#009d8e
		fontOnHeaderColor = white
	</macros>

	<style>
		.section {
			border: 1px solid $headerColor;
			padding: 2px;
			text-align: left;
			margin-bottom: 1em;
		}
		.sectionHeader {
			background-color: $headerColor;
			color: $fontOnHeaderColor;
			display: block;
			padding: 2px;
			font-weight: bold;
		}
		table.baseline-aligned td {
			vertical-align: baseline;
		}
	</style>
        <h2>Pedigree tree upload form (v1.0)</h2>

	

	<section headerLabel="Document Upload">
		<table class="baseline-aligned">
                        <tr>
				<td>Date:</td>
				<td><encounterDate default="today"/></td>
			</tr>
                       <tr>
				<td>Location:</td>
				<td><encounterLocation default="SessionAttribute:emrContext.sessionLocationId"/></td>
			</tr>
                         <tr>
				<td>Provider:</td>
				<td><encounterProvider default="currentUser"/></td>
			</tr>

                        <!--<tr>
                            <td>testing:</td>
				<td><obs conceptId="163112"/></td>
                        </tr>-->
                        
                       <tr>
				<td >JsPedigree Tree</td>
				<td ><obs conceptId="163111" /></td>
			</tr>
	
		</table>
               </section>
               <submit/>

</htmlform>

Concept for Image storag

As you can see there’s one observation for this concept. It worked for once but now anymore :frowning:

Thank you.

It saves the image if the form is opened from : Home>FormEntry>SelectPatient>SelectForm>Upload. But when i add the form link into Patient Dashboard’s General Action section, it doesn’t save the image files but saves the text concept in that same form. Any suggestion?