Arquisoft / viade_es3c

Viade es3c
4 stars 11 forks source link

Create a route with a file #40

Closed saragarciarg closed 4 years ago

saragarciarg commented 4 years ago

The users can create a route using a geojson file and can upload multimedia too

saragarciarg commented 4 years ago

When press upload photo or video, url is modified to http://localhost:3000/?description=#/uploadRoute The same component is been used by NewRoute and that is not happening.

saragarciarg commented 4 years ago

Now i'm trying to create a route with a gpx file

saragarciarg commented 4 years ago

To upload the files I tried to use a drag and drop but the way to treat the files was not functional, so I returned to the classic way of uploading a file

saragarciarg commented 4 years ago

When testing, I can't find a way to pass the file correctly. I investigated how to change the state of an object from the test but I can't get it to work. I was looking in: https://medium.com/@yevgen4/way-to-test-react-usestate-hook-with-jest-and-enzyme-acfeb1b4f8aa

gemarico commented 4 years ago

When press upload photo or video, url is modified to http://localhost:3000/?description=#/uploadRoute The same component is been used by NewRoute and that is not happening.

Since there is 2 buttons that perform an submit action you have to put them out of the form.

uo246355 commented 4 years ago

Done and working