Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
CaptureMedia (Apple confirmed: file upload bug)
-
@techteej Here [were] simplified start function and new request handler to use with CaptureMedia:
-
@tony Could you post the whole script so I know where to put it?
-
@techteej Will do... just waiting to hopefully include iOS 8 fix... and then lose the warnings.
-
@techteej I think I've found the reason. It fits with iOS 8 giving the problem. It's available memory I think, and that would likely be lower on iOS 8. I added more and more into the scenario and eventually I hit the crash on iOS 7. Restarting the iPad made it go away again.
I've a nice demo running now that shows how one view in a panel can overlay the MyCaptureMedia in the popover and display the results using quicklook.
-
@tony Is there any way we can fix the iOS 8 issue?
-
@techteej I'm guessing it may be released on Tuesday so I'll probably be able to confirm then. I've added a gc.collect() right after the JavaScript clicks the button and another when the POST has finished... those are points where I think it doesn't matter if a little time goes on freeing up memory because the windows are presented and waiting for user action. Those points also bracket the peak memory usage period I imagine.
If you want you could try on your iOS 8 beta now... try from a clean power up of the iPad and no other apps running, to test the best case... and try it with and without the gc.collects().
It's looking sweet here... fast and reliable... and there's now some visual feedback too that the upload is happening
-
@techteej Here's how v3.0 [was] looking with the Example panel bringing up the popover on top.
-
@techteej I have iOS 8 now... and have tested the general case of media upload from browser... with @omz's File Transfer script as the simplest case...
- File Transfer script + iOS 8 Safari on same iPad: Result = OK
- File Transfer script + Pyhtonista webbrowser = FAIL
I think, therefore, that there's not a chance to get this running on iOS 8 until perhaps a next version of Pythonista.
-
- here's a full write up of the IOS 8 file upload bug confirmed by Apple.
- and the immediate crash you got happens too in other apps using the iOS 7 version browser eg AtomicWebBrowser
-
8.0.1 apparently fixes this. Updating now, will try.