The Ultrashock Ultra Bundle
  • Home
  • Community
  • Forum
  • Flash
  • ActionScript
  • Thread
  •  
  • Previous topic
  • Next topic
Sign up to post

Flash
 ActionScript

  • wraevn Author 
    • 2189 
    • 0 
    • 4 
    Resume Upload - possible?
    wraevn

    Last reply Jun 24 2008, 02:15 PM

    by wraevn

    Posted: Jun 20 2008, 04:23 PM

    by wraevn

     

So you’ve got somebody uploading a bunch of huge files (FileReferenceList) in your Flash or Flex app (NOT AIR).

Something happens - they lose power, connectivity, they accidentally log off etc.

They log in again, get reconnected etc. ...

Is it possible to:

a) automatically locate those orphaned uploads w/out them having to browse and select them again (basically, storing the FileReferenceList - in an FSO maybe?) so you can automatically start uploading them again?

b) find out where the upload of each file got cut off and resume the upload from there (instead of having to upload the whole bloody thing from scratch)

Thanks!

  4 REPLIES
 
Nutrox
1  
Nutrox

Resuming the file upload from where it was cut off isn’t possible because you can’t access the file system directly from the Flash Player. It is possible with AIR though as long as you keep track of where the data is being stored on the server… but I guess that isn’t of much use to you for this.

The first question is an interesting one though. I don’t think that will be possible either unless a FileReferenceList object can be serialised properly. I can try a few things out for you later today if it will help.

  • 20 June 2008 05:08 PM
  •  
wraevn Author 
2  
wraevn

If serializing a FileReference is what’s necessary - would this work?

http://www.mikechambers.com/blog/2007/06/22/serializing-file-reference-instances-in-adobe-air/

I hesitated delving too deep w/ this as it’s in reference to an AIR project, but perhaps ... ?

  • 20 June 2008 05:18 PM
  •  
Nutrox
3  
Nutrox

The File class is a bit different to FileReference because the FileReference’s name property is read-only which means you wouldn’t be able to restore the name/path of the file again when the object was restored. I don’t think the full system path to the file is public either. If the filename/path is stored as a private variable within the FileReference class then this isn’t going to be possible unfortunately. So, getting a FileReference object to serialise properly is possible but restoring the filename/path when the object is restored probably isn’t, and that puts a big spanner in the works.

  • 20 June 2008 05:35 PM
  •  
wraevn Author 
4  
wraevn

blech - that’s no fun ... I wonder if it’s possible to write your own FileReference ... Thanks Nutrox for your input!

  • 24 June 2008 02:15 PM
  •  
  •   Log in or join for free to make a comment.
 
Topic actions
  •  Share on Facebook
  •  Share on Twitter
Topic Categories
  •  Show All Topics
  •  Development
    •  Server Side
    •  Client Side
  •  Creative Software
    •  Web
    •  Video
    •  3D
    •  Illustrator
    •  Photoshop Battles
    •  Photoshop
  •  Design
    •  Typography
    •  Resources & Insight
    •  Checkpoint
  •  Career
    •  Copyright Matters
    •  Advice & issues
    •  Job Seekers
    •  Job Offers
  •  Flash
    •  UltraMath
    •  OOP
    •  Third Party Tools
    •  Open Source alternatives
    •  Data Communication
    •  Components
    •  Flex
    •  AIR
    •  Flash Lite
    •  Flash Professional
    •  Flash Newbie
    •  ActionScript
    •  XML
  •  Lounge
    •  Polls
    •  Random Chat
    •  Showcase And Critique
    •  BombShock Award Nominations
  •  Community Essentials
    •  BombShock Award Winners
    •  Tutorials
    •  Interviews
    •  News
    •  Bitmap tutorials
Popular Topics
  • Sort by: 
  • Activity
  • Views
  • Comments
  • Likes
Advertise with us
  • Your advertisement here!
  • loading
Ultrashock
  • Creative Assets
  • Community
  • Blog
  1. Home
  2. Forum
+/-
Creative Assets
  • Categories
  • Contributors
  • How to buy
Make Money
  • Commission Rates
  • Referral Program
  • Contributor Program
Community
  • Activity Feed
  • Forum
  • Profiles
About
  • Quick Tour
  • Our History
  • Banners & Logos
Support
  • Contact Ultrashock
  • Advertise with us
  • Legal Information
  •  Keep up to date
  • Flash 775  Flash
  • Audio 6,481  Audio
  • Vector 2,130  Vectors
  • Image 12,338  Images
  • Creative Assets 21,724  Assets
  • Profiles 282,659  Members
  • Topics 93,762  Topics
  • Blog 4  Blog
  • Facebook 1,680  Facebook
  • Twitter 1,165  Twitter
  • Join our FREE monthly newsletter!
  • Archive
  • Invalid email address. Please try again.
Subscribe
  • ©2012 Ultrashock LLC - All rights reserved
  • Terms of Use
  • Privacy Policy
  • Switch to dark theme
  • RSS Feeds
  • Top

©2012 Ultrashock LLC - All rights reserved

Printed on Sat, February 04, 2012 - 19:29:09