Hi, I just purchased xuploadpro.
I have 3 questions:
1. What I would like to do, is have the max-file-size variable dynamic based on the user using the form.
For example, in mysql table, each user has their own custom max_file_size parameter. With PHP, I would like to deliver that custom max_file_size to the upload.cgi.
Can this be done?
2. In the Xupload free version, you could specify in the form what filetypes were permitted. However, I don't see it in the pro version. How can I specify specific filetypes within the form itself? (so I can have different forms allowing different filetypes)
3. There are many unknown variables that are certain to change behaviors but are undocumented. For example, xmode, css_type and others. Is there documentations somewhere describing all of these and their behaviors?
Thanks!
XUpload - set max_file_size within form
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
golgotha,
1) It's unsecure to have max-file-size variable in form on user side, thay can just edit it manually and upload any size they want. Right now we're using xmode hidden field to specify upload mode. Take a look into XUploadConfig.pm for these modes examples. Anyway, if you feel ok with this, I can create quick hack for you.
2) That is correct. Now using file extensions from XUploadConfig, so you don't need to specify them in 2 places, but in one config only.
3) xmode - upload mode you wanna use. Modes are specified in XUploadConfig.pm
css_name - name of CSS style, specified in XUploadConfig.pm, style
files should be in Styles folder
tmpl_name - name of HTML template, specified in XUploadConfig.pm, style
files should be in Templates folder
rob1984, should work all right if you can execute php files in that folder.
1) It's unsecure to have max-file-size variable in form on user side, thay can just edit it manually and upload any size they want. Right now we're using xmode hidden field to specify upload mode. Take a look into XUploadConfig.pm for these modes examples. Anyway, if you feel ok with this, I can create quick hack for you.
2) That is correct. Now using file extensions from XUploadConfig, so you don't need to specify them in 2 places, but in one config only.
3) xmode - upload mode you wanna use. Modes are specified in XUploadConfig.pm
css_name - name of CSS style, specified in XUploadConfig.pm, style
files should be in Styles folder
tmpl_name - name of HTML template, specified in XUploadConfig.pm, style
files should be in Templates folder
rob1984, should work all right if you can execute php files in that folder.
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
I'm sorry to tell you this, but it's not so easy to implement now. Possible, but require time that I don't have now. The easiest way is to check for filesize and user limit in your PHP script After upload, then decide keep the file or delete.
I will think about this feature, maybe will do some magic in next version, not sured, too unsecure.
I will think about this feature, maybe will do some magic in next version, not sured, too unsecure.
-
- Posts: 9
- Joined: Oct 11, 2006 6:15 pm
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm