Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <input type="file" ngf-select ng-model="picFile" name="file" accept="image/*" ngf-multiple="true" ngf-max-size="20MB" required>
- $scope.uploader = newData.file;
- createNewRealEstateCase.submitImageAttachment($scope.uploader.$modelValue, real_estate_agent_assignments_id).then(function(result) {
- console.log(result)
- })
- def image_attachment_by_loan_application
- ap params
- @rea_attachment = RealEstateAgentAssignment.find(params[:real_estate_agent_assignment_id])
- params[:attachment].split(",").each { |image|
- @rea_attachment.real_estate_agent_assignment_attachments.create(real_estate_agent_assignment_id: params[:real_estate_agent_assignment_id], attachment: image)
- }
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement