Uploading heavy media files

Discussion in 'Programming' started by abhishek_c2, Apr 26, 2006.

  1. #1
    I have been scratching my brains for quite sometime with this problem:
    "eZ publish has a mechanism to store and display structured information which is called datatypes. You can add new datatypes via a plugin system. There is an existing datatype to handle media files like Flash and Quicktime video. This
    datatype requires you to upload the files from your local computer via your webbrowser using a standard HTML upload form. This works fine for smaller files, but it for larger files this is not very useful.
    Please alter the implementation of the media datatype to allow for browsing on the server hard disc for available files instead of uploading them. Assume that the files are already transfered to the server via e.g. FTP and are readable in the directory /upload on the server. The files should be deleted from the /upload folder once attached to the media datatype."

    I figured out that this could be what I need to do theoritically:
    "Since the media files are already uploaded in the server, we just need to display it in the client browser. So, we need to implement the web-based file browser using either
    cgi-perl / asp / servelet. This file browser will list out the existing files in the /upload folder of the server.
    The only change that is required to the media datatype is simply the input. Currently, the input is the file contents posted by the web browser as part of the request. Under the revised system, this would be the name of the file on the server, and so the media datatype would need to read the contents of the file, and then delete the file on the server."
    But I absolutely don't have any idea of how to do the coding. Can anybody please give me a code to make the above stuff operational?
     
    abhishek_c2, Apr 26, 2006 IP