Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Jamroom Developers:
jrFileUpload
jamesd116



Joined: 05 Jun 2006
Posts: 1559
Location: Rochester Pa

Posted: 03/15/09 13:26 
I just want to make sure I am doing this correct in the uploader the following part of code

Code
$_args = array(
  'mode' => 'jrFileUpload.php|save_files'
);
jrProgressFormBegin('jrFileUpload.php',$_args);


is the following correct


Code
$_args = array(
  'mode' => 'myScriptName.php|save_files'
);
jrProgressFormBegin('myScriptName.php',$_args);


Now the following portion is there anything that needs chnged there
    Am i supposed to select a file in the first area

    the meter file 1 area it has a 1 is the one fine here or should it be changed to something else

    and in the third area should put something in the file area


Code
jmInput('Select a File',"meter_file_1",'file');
[/list]

When I try to upload a video its telling me wrong file types and points to img type of extensions how do I get get it to accept video formats


#################### UPDATE ############################
I FINALLY GOT THE video to start to upload by chaning media to video the problem now is after upload it shows as Invalid Option

http://www.4spotlight.com/otherimages/fileupload.bmp


_________________
One day the court system will learn that a childs mother is not the only option...... Question is will it be too late by that time...
Back to top
jamesd116



Joined: 05 Jun 2006
Posts: 1559
Location: Rochester Pa

Posted: 03/16/09 15:07 
Any one with a reason why this is happening


_________________
One day the court system will learn that a childs mother is not the only option...... Question is will it be too late by that time...
Back to top
Brian
Jamroom Team


Joined: 09 Jul 2003
Posts: 37583
Location: Seattle, WA

Posted: 03/16/09 17:29 
Make sure you have a "save_files" option as $_post['mode'] in your PHP form controller.

Hope this helps!

- Brian


_________________
Make sure and check out:
* The Jamroom FAQ
* The Jamroom Documentation
Back to top
jamesd116



Joined: 05 Jun 2006
Posts: 1559
Location: Rochester Pa

Posted: 03/16/09 18:02 
THis looks to be correct to me let me know if ti is incorrect which obviously is not correct since its not working for me lol


Code
// Show correct form based on "mode" received
switch ($_post['mode']) {

    // Create
    case 'create':

        // retrieve saved data from session
        $_rep = getForm('kjBeats');

// Set our progress flag so we know to include the proper js   
$GLOBALS['JR_PROGRESS_ENABLE'] = true;   
 
jmHtmlBegin('Beats Upload');   
$_args = array(   
  'mode' => 'kjBeats.php|save_files' 
);   
        jrProgressFormBegin('kjBeats.php',$_args);   
        jmSpanCell('File Upload','This is the Help',30,'html_modify.png');   
        jmInput($language['kjBeats'][100],'beats_video_artist','text',$_rep['beats_video_artist']);
        jmInput($language['kjBeats'][101],'beats_video_name','text',$_rep['beats_video_name']);
        jmInput($language['kjBeats'][102],'beats_keywords','text',$_rep['beats_keywords']);
        jmInput('Select A File',"meter_file_1",'file');
        jmSelect($language['kjBeats'][5],'beats_video_genre',"{$jamroom['jm_dir']}/config/genre.txt");
        jrProgressBarHtml();   
        jrFormSubmit('Upload File','undo changes',false,'admin.php',false,true,'video');   
        jmEndForm();
        jmBodyEnd();
        jmHtmlEnd();
        exit;
        break;



_________________
One day the court system will learn that a childs mother is not the only option...... Question is will it be too late by that time...
Back to top
jamesd116



Joined: 05 Jun 2006
Posts: 1559
Location: Rochester Pa

Posted: 03/18/09 16:37 
anyone with a suggestion as to why i am coming up with an invalid option


_________________
One day the court system will learn that a childs mother is not the only option...... Question is will it be too late by that time...
Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 03/19/09 18:00 
You need to have another "case" in your switch statement for that mode. That is where you will do the processing and uploading of the file.


_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
jamesd116



Joined: 05 Jun 2006
Posts: 1559
Location: Rochester Pa

Posted: 04/06/09 08:41 
How do I add the case so I can upload video


_________________
One day the court system will learn that a childs mother is not the only option...... Question is will it be too late by that time...
Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 04/06/09 12:09 
You would probably need to change your "create" case to "create_beat", and then duplicate that section and modify it for video, giving it a case of "create_video"


_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
Jamroom Developers

 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.