We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6059
    • 45 Posts
    Hy, i want to make a form with some fileds and a file upload field. Is there any snippet or other cool modx things wwho can do this with validation (file type, file size?). Or schould i do a normal php file upload with move_file? smiley

    I use Modx Revolution 2.0.7.

    Antoher question after fileupload, do i need to create thumbs of my pics if i want some or can i use phpthumb? I read from phpthumb in web but can not found info in official modx revolution docu.

    Thx for help
      • 22757
      • 41 Posts
      i havent seen something for a upload yet, but you can write your own handy snippet with normal PHP and move_uploaded_file. But for the thumbs you can use phpthumb, it works fine.
        • 6059
        • 45 Posts
        What do i need to do to get thumb from php thumb for my image? Is the a doc fpor it? Does it only cache the thumbs or save it do disk?
          • 22757
          • 41 Posts
          Caching means saving on disk. You can put something like <img src="[[+placeholderWithImgPath:phpthumbof=`w=100&h=100`]]" /> in a chunk, but actually i don’t know if there’s a doc for it right now.
            • 4172
            • 5,888 Posts
            here is a formit-hook-snippet: formit2file - http://modxcms.com/forums/index.php/topic,56385.0.html
              -------------------------------

              you can buy me a beer, if you like MIGX

              http://webcmsolutions.de/migx.html

              Thanks!
              • 6059
              • 45 Posts
              Cool post thanks, i use formit for the form and now fileupload is into it grin