SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2007
    Location
    Bridgend, UK
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Accessing files being served locally

    I'm writing a plugin for an application which has an undocumented API. I'm having to reverse engineer it a bit, but I've run into a part where I need to use javascript (I think).

    Basically, the application provides the URL of a file that's being served locally (i.e. http://localhost:80/files/file.pdf).

    I need to upload the file. I was initially going to do this in PHP, but then realised there might be an issue with firewalls.

    I'm wondering if it's possible to upload the file somewhere in javascript? Or would need to use something like Flex?

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,156
    Mentioned
    190 Post(s)
    Tagged
    2 Thread(s)

    file upload

    Can you use a form with a file input?

  3. #3
    SitePoint Enthusiast
    Join Date
    Jan 2007
    Location
    Bridgend, UK
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The local file is being served on a local web server by the application, but I don't know the location of the file on the drive.
    As they're images, the idea I have is to base64 encode it and upload it that way.

    Is there a way to base64 encode an image from a URL (the local URL)?


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
  •