close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Create a secure upload site with recurring uploads

Thread began 12/20/2013 3:30 pm by pat356751 | Last modified 1/16/2014 3:43 pm by Jason Byrnes | 2635 views | 21 replies |

pat356751

Create a secure upload site with recurring uploads

Is there a tutorial that can help me create a secure upload site that includes a short registration form. The users will need access to the upload site and be able to update files as needed. I have tried the Webassist upload tutorials without success.

Sign in to reply to this post

Jason ByrnesWebAssist

there is not a tutorial with these specific details


Use Security assist to create the login page and protect the page that you add the upload to. See the security assist getting started guide.

Sign in to reply to this post

pat356751

I used Security Assist to create a registration with login page. I then added code for a basic upload form to the registration form
<label for="file">Upload File:</label>
<input type="file" name="upload" id="upload"> .

Can I use upload from the File Manipulation menu to integrate this into the registration form?

Sign in to reply to this post

Ray BorduinWebAssist

Yes... you would have to also update your form enctype to multipart/form-data.

Sign in to reply to this post

pat356751

Updated the enctype="multipart/form-data" . I'm not able to see the registration from and userupdate pages in the browser. The error messages is the same for both pages:

Warning: require_once(webassist/security_assist/helper_php.php): failed to open stream: No such file or directory in /Library/Server/Web/Data/Sites/Default/registration2.php on line 8

Fatal error: require_once(): Failed opening required 'webassist/security_assist/helper_php.php' (include_path='.:') in /Library/Server/Web/Data/Sites/Default/registration2.php on line 8

I tried deleting the lines of code but still not able to view the pages in a browser. I'm not able to test the upload portion of the form until this is corrected. The registration2php file is attached.

Attached Files
registration2.php
Sign in to reply to this post

Jason ByrnesWebAssist

the error message means that the webassist/security_assist/helper_php.php file is not on the server, make sure to upload the entire webassist/ directory to the server.

Sign in to reply to this post

pat356751

Fixed the error messages but upload is still not working on the registration site. I added the webassit upload code to the site but when the registration form is submitted, the file doesn't save. I'm not getting an error message. The registration file is attached if needed.

Attached Files
registration.php
Sign in to reply to this post

Jason ByrnesWebAssist

theres a couple problems:

1) in the upload server behavior, you have bound the file field to the Validated entries collection. Instead, clci the Down Arrow next to the file field setting and select the file field from your page.

2) in the insert record behavior, you have bound the UserFiles to the Registration_group_1_UserFiles, instead, click th4e lightning bolt icon, select the WA Uploaded Files(Registration_group_1_UserFiles) binding group and select the user file name binding.

3) in your form tag the enctype attribute is misnamed nctype

change:
<form class="Basic_Default" id="Registration_Basic_Default" name="Registration_Basic_Default" nctype="multipart/form-data" method="post" action="<?php echo (htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES)); ?>">

to:
<form class="Basic_Default" id="Registration_Basic_Default" name="Registration_Basic_Default" enctype="multipart/form-data" method="post" action="<?php echo (htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES)); ?>">

Sign in to reply to this post

pat356751

I made changes to the registration form and now getting an error, Notice: Undefined index: userupdate_User_Update_group_1_UserFiles in /Library/Server/Web/Data/Sites/Default/tsec/registration.php on line 26. I'm not able to upload a file to the destination folder.

Attached Files
registration.php
Sign in to reply to this post

Jason ByrnesWebAssist

you have the trigger for the upload set to a session variable being set.

for the upload use the trigger Any form post.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...