Week 8 : Up and Out
This week, James and I have worked on uploading a file to the local host. As we have already been able to upload text data for the bat database the next step is to upload the recordings of the bats themselves.
For uploading we are recommending all users zip the folder so that the file is compressed, thus saving storage space on our end. To be able to do this we refered to some online sources to better understand how php integrates with mySQL when moving files. After some research, we were able to succesfully upload a file to a pre-generated database. Unfortunatly the next hurdle is now saving said file, but I am not distressed. As the project continues I am both learning so much, and aiming to make a difference.
The output of the test code |
For uploading we are recommending all users zip the folder so that the file is compressed, thus saving storage space on our end. To be able to do this we refered to some online sources to better understand how php integrates with mySQL when moving files. After some research, we were able to succesfully upload a file to a pre-generated database. Unfortunatly the next hurdle is now saving said file, but I am not distressed. As the project continues I am both learning so much, and aiming to make a difference.
Yeah, the file just keeps disappearing and not going anywhere. So, we have to redirect the save files to a location in the computer for it to be tangible. But alas, the file just magically disappears without a trace. But at least we fixed if from converting it to a text file to an actual image file.
ReplyDelete