SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2006
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Standards Compliant file uploader?

    Anyone know of a free or commercial standards compliant file uploader (like sendspace.com. It doesn't need to be perfectly valid, but I'm looking for semantic HTML with the style controlled completely by CSS. Preferably written in PHP, Rails, or Django (but I'd find PHP the most likely candidate).

    Is there anything like that available?

  2. #2
    SitePoint Addict dionsiseire's Avatar
    Join Date
    Apr 2005
    Location
    Dublin
    Posts
    334
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i dont think compliance has anything to do with the file uploading. just the design issue's, why not take a simple one and modify to fix the errors through the standard checker.

  3. #3
    SitePoint Enthusiast
    Join Date
    Jan 2006
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, but I'd rather just start with something that's already semantically laid out, than having to edit all the presentational code out of it. Plus, just knowing that the developer made an attempt at creating valid code would make me more confident in the backend part of it.

  4. #4
    SitePoint Addict dionsiseire's Avatar
    Join Date
    Apr 2005
    Location
    Dublin
    Posts
    334
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i know what your saying, but the only scripts i can think of that may even bother with standard compliance is those image upload script ( a decent version )

    you need to bear in mind, most image uploaders are the same HTML for the form, and a dynamic piece of code to give you the file in the folder and maybe throw info into a database.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title> Uploader </title>
    </head>
    <body>
    <form enctype="multipart/form-data" action="upload.php" method="post">
    <p>
    Choose a file to upload:
    <input type="file" name="uploadedfile" /><br /><br />
    <input type="submit" value="Upload File" />
    <input type="reset" />
    </p>
    </form>
    </body>
    </html>
    there is an example of code i threw together that is complete HTML standard compliant passing the strict validation.

    now what you do with that is up to you, you still need a little code PHP's end or perl or something similar and do something with the file.

    most default PHP installs have a 512kb or 2mb limit, that can be an issue in a lot of cases

  5. #5
    SitePoint Zealot
    Join Date
    Oct 2006
    Posts
    116
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)


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
  •