Skip to content

Instantly share code, notes, and snippets.

View kyungjoongo's full-sized avatar

KYUNGJOON GO kyungjoongo

  • Of course, I am also good at server side programming.
  • bundang(kyunggido)
View GitHub Profile
package com.kyungjoon777.test.com;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.servlet.ModelAndView;
import React, {useState} from 'react';
import {Button, Image, Platform, View} from 'react-native';
import {launchImageLibrary} from 'react-native-image-picker';
const SERVER_URL = 'http://kyungjoon2.ipdisk.co.kr:3000/upload';
const UploadDemo = () => {
const [reg_file, set_reg_files] = useState(null);
const [ext_file, set_ext_files] = useState(null);
@kyungjoongo
kyungjoongo / upload_spring_boot
Created July 13, 2022 20:33
upload_spring_boot
package com.kyungjoon777.test.com;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import java.io.File;
import React from 'react';
import {View, Image, Button, Platform} from 'react-native';
import {launchImageLibrary} from 'react-native-image-picker';
const SERVER_URL = 'http://kyungjoon2.ipdisk.co.kr:3000/upload';
const createFormData = (photo, body = {}) => {
console.log("datadatadatadata===>", data);
import React from 'react';
import {View, Image, Button, Platform} from 'react-native';
import {launchImageLibrary} from 'react-native-image-picker';
const SERVER_URL = 'http://kyungjoon2.ipdisk.co.kr:3000/upload';
const createFormData = (photo, body = {}) => {
console.log("datadatadatadata===>", data);
const express = require("express");
const handlebars = require('express-handlebars');
const bodyParser = require("body-parser");
const cors = require("cors");
const path = require('path');
const app = express();
app.engine('.hbs', handlebars({
layoutsDir: __dirname + '/views/layouts',
defaultLayout: null,
import React from 'react';
import {View, Image, Button, Platform} from 'react-native';
import {launchImageLibrary} from 'react-native-image-picker';
const SERVER_URL = 'http://kyungjoon2.ipdisk.co.kr:3000';
const createFormData = (photo, body = {}) => {
console.log("datadatadatadata===>", data);
import React from 'react';
import {View, Image, Button, Platform} from 'react-native';
import {launchImageLibrary} from 'react-native-image-picker';
const SERVER_URL = 'http://kyungjoon2.ipdisk.co.kr:3000';
const createFormData = (photo, body = {}) => {
console.log("datadatadatadata===>", data);
import React from 'react';
import {View, Image, Button, Platform} from 'react-native';
import {launchImageLibrary} from 'react-native-image-picker';
const SERVER_URL = 'http://kyungjoon2.ipdisk.co.kr:3000';
const createFormData = (photo, body = {}) => {
console.log("datadatadatadata===>", data);