edina / fieldtrip-gb

Fieldtrip GB is a mobile mapping and data collection app that is available for iPhone and Android devices.
Other
1 stars 0 forks source link

Syncing broken on ios #63

Closed murrayk closed 10 years ago

murrayk commented 10 years ago

To replicate upload a audio file. Reinstall app then sync.

ERROR: Problem downloading asset: http://fieldtripgb.edina.ac.uk/1.3/pcapi/records/dropbox/Mlf5S6wnbQSx5zgH/Audio%20(26-08-2014%2012h36m52s)/audio_001.wav to: null

looks like cordova fails to create a nested directory within assets.

murrayk commented 10 years ago

Its having an issue trying to create the audio directory by the look of it.

"/69C32D91-3F30-410F-A0EC-160180786327/Documents/edina/assets//Audio (26-08-2014 12h36m52s)/audio_001.wav"

murrayk commented 10 years ago

Same issue with images.

2014-08-26 16:07:58.837 FieldTrip GB[496:791b] FileTransferError { body = "Could not create target file"; code = 1; "http_status" = 200; source = "http://fieldtripgb.edina.ac.uk/1.3/pcapi/records/dropbox/ieMAqL70JWUyf1xr/Image%20(26-08-2014%2015h39m16s)/cdv_photo_002.jpg"; }

murrayk commented 10 years ago

File path needs to be escaped to work with ios

gmh04 commented 10 years ago

I wonder why spatial memories didn't see this problem?

gmh04 commented 10 years ago

Maybe spatial memories didn't sync?

colingor commented 10 years ago

https://github.com/edina/spatial-memories/issues/86

murrayk commented 10 years ago

Spatial memories encodes the uri I've added

commit ea632ebe7373fd923996ae7bdbe7a8e04edf4c7a Author: Murray King murray.king@ed.ac.uk Date: Wed Aug 27 12:34:45 2014 +0100

Issue edina/fieldtrip-gb#63 File path needs to be escaped to work with ios
murrayk commented 10 years ago

Works on ios but not tested if side effects for android