Results 1 to 4 of 4

Thread: Upload Files in fronted via Form Generator, display and edit

  1. #1
    User
    Join Date
    07-13-09.
    Posts
    83

    Default Upload Files in fronted via Form Generator, display and edit

    I have build a form with which front end users can upload files in their respective user folders.
    How can I have these files displayed and let the user edit them?
    I have difficulties finding a solution.

    Thanks for your help!
    Valentin

  2. #2
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

    Default Re: Upload Files in fronted via Form Generator, display and

    Did you find a solution?

  3. #3
    User
    Join Date
    07-13-09.
    Posts
    83

    Default Re: Upload Files in fronted via Form Generator, display and

    No. At least none that was really working how I wanted it to work.
    How we do it now: the client creates backend users, assigns them a certain usergroup that can only use the "File System".
    That´s it. Now certain users can access only certain folders and so on...

  4. #4
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

    Default Re: Upload Files in fronted via Form Generator, display and

    You could do it by writing a php script placed in the Templates directory and called with the file inserttag from a protected page (where the member logs in to).
    The script would need to find the members homedirectory path, scan the files in that directory using scan() and count() to loop and build each image path into a variable, generate and return the appropriate html to view the image thumbnails.
    You could place a delete button after each thumbnail - which when triggered would delete that image using
    Code:
    $removefiles = new File($theImageFilepath);
    	$removefiles->delete();
    Upload could just redirect back to your form.
    I've done something similar so I know it works, but its too complex to use as an example as it does other stuff like restricts the folder to 3 images only, records the image paths in the database and generally ties in with another system.
    Hopefully this is a starting point for you, if you still want to do this.

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
  •