Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: use flash as an interface to upload files

  1. #1
    Join Date
    Jan 2008
    Location
    Near Chicago
    Posts
    247
    Thanks
    105
    Thanked 2 Times in 2 Posts

    Arrow use flash as an interface to upload files

    I want to have a user import files from their desktop to be displayed in a scrollbar,

    -I found a great tutorial on gotoandlearn for a scroll bar
    -I figured out how to use loader to place any file I want or take it off a url.

    -can I create an interface for users to upload their own pics to it?

    -any sugestions?

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Sure...

    It's done all the time. Of course, the Flash would just provide the UI. You'll need to have something else (like PHP) doing the heavy lifting.

    http://labs.findsubstance.com/2008/0...encode-images/
    http://drawlogic.com/2007/08/02/uplo...lash9-and-as3/

    Edit: Be aware of recent security changes to the Flash Player when implementing an upload form

  3. The Following User Says Thank You to Medyman For This Useful Post:

    evan (09-11-2008)

  4. #3
    Join Date
    Aug 2008
    Posts
    29
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Nice links Medyman - I've been searching for this info for a while/

    The first I just downloaded and put it straight onto my server to see if it worked but nothing went into the directories so I'm not sure if the server side is correctly set up - lack of knowledge here but I know that was mentioned - though I did notice a php file in there which doesn't appear to be referenced. I only created directories on my server and referenced these variables in 'Image Creator.as' as advised. Real shame 'cos it looks unreal.

    The second I tried to test it in the same way (putting it straight on the server) having created a simple html page with the flash (.swf file in) but it wouldn't show even though they are all in the same directory on the server.

    Anyone got any advice on any of these two?? Particularly the first which seems to require a server side script (don't know how to implement it) and would possibly also benefit from the images appearing in proportion on screen.

  5. #4
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    What are you chmod permissions for the directories you're trying to upload images to? That would be where I would start.

  6. #5
    Join Date
    Aug 2008
    Posts
    29
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    They are 777 - which allows them to be written to. Is this what you are asking for?

  7. #6
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Yes, that's what I meant. But 777 should not cause any issues.

    I'm not really sure what else could be the matter. I've never used the particular techniques outlined in those links so I can't offer much.

  8. #7
    Join Date
    Aug 2008
    Posts
    29
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thanks anyway and if anyone can help on this subject please post for the interests of advancement.

  9. #8
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Hey g_force...

    Are you 100% positive about your server is set up correctly? I just downloaded the source from the first link I posted and it works perfectly fine.

    You can see it here. You can go to http://www.visualbinary.net/files/tu...-file-name.jpg to see that your file does get uploaded.

    All I did was take everything within the deploy directory and uploaded it to my server. I make sure that the uploads and output directories were writeable, and voila.

    You mentioned going into Image Creator.as in your post. I haven't opened it, but you don't need to be messing with the source code (unless you want to change the functionality).

  10. The Following User Says Thank You to Medyman For This Useful Post:

    g_force (12-12-2008)

  11. #9
    Join Date
    Aug 2008
    Posts
    29
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    thanks for the reply and sorry to take so long to respond...

    I have done exactly as you say that you did - that is:

    1) uploaded the deploy directory to my server
    2) made the uploads and output directories writable

    It doesn't show the image nor upload it to my server. When I test it in flash it seems to work but as only the .swf file was provided there is no way to open up the script and have a look. If yours worked and mine didn't there must be some slight difference in what we did - any idea what it could be?

    -thanks

  12. #10
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Since the code is the same, the differences would be on the server. Those might be hard to pin down, but some things I would check:

    1) PHP uploads are enabled in php.ini
    2) Files uploaded via PHP get the right permissions
    3) Upload file limits
    4) PHP memory limits

    You might need to contact your host to figure out the correct settings.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •