mobile download file

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

Klaus
Posts: 11488
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: mobile download file

Post by Klaus » Tue Nov 25, 2014 1:57 pm

Hi Vedus,

found something in your code, but not sure if this is causing your inconvenienece:

Code: Select all

on urlProgress pURL, pStatus, pBytesDone, pBytesTotal
   put pStatus into fld "pf1" of group "up_bar"
   switch pStatus
     ...
   case "downloaded"
   set the itemDel to slash
   put specialfolderpath("documents") & "/fms.zip" into myPath

   ## Here you are PUTting the urls TWICE on your hd, maybe removing one of these lines will help?
   put pUrl into URL ("binfile:" & myPath)
   put url pUrl into url myPath
   ...
Best

Klaus

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Location: Plymouth, UK
Contact:

Re: mobile download file

Post by dave.kilroy » Tue Nov 25, 2014 2:06 pm

Hi Klaus - yes I found that double 'put' as well (see earlier post) but vedus says without it nothing gets saved and the file downloads again and again...
"...this is not the code you are looking for..."

rblackmore245
Posts: 67
Joined: Fri Jun 12, 2015 9:42 am

Re: mobile download file

Post by rblackmore245 » Fri Jun 12, 2015 4:48 pm

Was a solution ever found for this as I can't seen to stop it from going into a download loop either :o/

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”