1
wishcraft
Ajax File Uploading 1.01

Ajax File Uploading 1.01
Form Object for XOOPS 2.4 & XOOPS 2.5

This is a replace for the XoopsFile object that allows for files to be uploaded without refreshing the page. That means you can recieve a file before the form is submitted.

This is good for any preview environment that offers a wide range of options for the environment where you are recieving the file.

If a file is successfully uploaded the form object returns a path and filename for the file.

This was made from this example:http://www.phpletter.com/Our-Projects/AjaxFileUpload/

Download: xoops2.5_ajaxfileupload_1.01.zip - 17.7Kb
Resized Image
www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/RegaltyFamily
github.com/Chronolabs-Cooperative
facebook.com/DrAntonyRoberts

2
Tarik
Re: Ajax File Uploading 1.01
  • 2011/2/4 12:55

  • Tarik

  • Not too shy to talk

  • Posts: 170

  • Since: 2010/2/3 1


thank you very much, it's what i needed
i will give results asap
Some people like what you do,
-- some people hate what you do,
---- but most people simply don’t give a damn.

3
wishcraft
Re: Ajax File Uploading 1.01

np...
Resized Image
www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/RegaltyFamily
github.com/Chronolabs-Cooperative
facebook.com/DrAntonyRoberts

4
redheadedrod
Re: Ajax File Uploading 1.01

I also have a use for this as well.. Thank you

Would have been helpful to provide a short document to show how to install and use this.

I am relatively new and trying to figure out how things work...


I am assuming we just need to copy everything from the htdocs folder to our docroot folder. (xoops_lib folder for that folder...)


Then from there how do I call it from a module I have?

Including any initializations.

I am guessing something like...


$myfile = new XoopsFormAjaxFile;

$result = $myfile->XoopsFormAjaxFile($Caption, $Delim, $name, $size, $upload path);

Is it that simple or am I missing something?

Is the $name parameter what the intended name of the file? And if left null will just keep the uploaded filename? Or how would we get the name of the file returned from this? Would it be in...

$myfile->name

?


Also is this for a single file? Or does it work for multiples? Guessing from the code just one file at a time.

Thanks Simon. Just trying to get my brain around some of this stuff... I am THAT close... (Showing fingers close together..)



Login

Who's Online

254 user(s) are online (148 user(s) are browsing Support Forums)


Members: 0


Guests: 254


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits