Skip to content

Instantly share code, notes, and snippets.

View davichoso's full-sized avatar

David Ovando davichoso

View GitHub Profile
@it-one-mm
it-one-mm / UploadAnt.tsx
Created August 21, 2020 06:07
File Upload using Ant with s3
import React, { useState } from 'react';
import { Upload, Button, message } from 'antd';
import { UploadOutlined } from '@ant-design/icons';
import axios from 'axios';
import { generateDateForFileName } from '../utils/helpers';
const nodeServerEndpoint = 'http://localhost:4000/api/v1/aws/sign-s3';
const phpServerEndpoint = 'http://localhost:9000/api/v1/signed-url-put-object';
const UploadAnt = () => {