Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

uploading files

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    uploading files

    I have created a upload file page as per alpha's example

    I require that I am able to upload up to 30 photos at a time and changed the code, which works when all 30 photos are added, but when only adding say 10 photos I get an error :

    500 Internal Server Error
    Script Error
    Error:Script: /fileupload2.a5w line:10
    file.from_blob("c:\kmassessors\Photos Temp\uploaded photos""\\" + FileToUpload2
    The system cannot find the path specified.
    c:\kmassessors\Photos Temp\uploaded photos\

    here is my code:

    HTML Code:
    <html> 
    
    <%a5 
    
    dim msg as c = "" 
    
    if eval_valid("cmd") 
    
        file.from_blob("c:\kmassessors\Photos Temp\uploaded photos""\\" + FileToUpload.filename, FileToUpload.data) 
    	file.from_blob("c:\kmassessors\Photos Temp\uploaded photos""\\" + FileToUpload2.filename, FileToUpload2.data) 
    	file.from_blob("c:\kmassessors\Photos Temp\uploaded photos""\\" + FileToUpload3.filename, FileToUpload3.data) 
    	file.from_blob("c:\kmassessors\Photos Temp\uploaded photos""\\" + FileToUpload4.filename, FileToUpload4.data) 
    	file.from_blob("c:\kmassessors\Photos Temp\uploaded photos""\\" + FileToUpload5.filename, FileToUpload5.data) 
    	file.from_blob("c:\kmassessors\Photos Temp\uploaded photos""\\" + FileToUpload6.filename, FileToUpload6.data) 
    	file.from_blob("c:\kmassessors\Photos Temp\uploaded photos""\\" + FileToUpload7.filename, FileToUpload7.data) 
    	file.from_blob("c:\kmassessors\Photos Temp\uploaded photos""\\" + FileToUpload8.filename, FileToUpload8.data) 
    	file.from_blob("c:\kmassessors\Photos Temp\uploaded photos""\\" + FileToUpload9.filename, FileToUpload9.data) 
    	file.from_blob("c:\kmassessors\Photos Temp\uploaded photos""\\" + FileToUpload10.filename, FileToUpload10.data) 
    	file.from_blob("c:\kmassessors\Photos Temp\uploaded photos""\\" + FileToUpload11.filename, FileToUpload11.data) 
    	file.from_blob("c:\kmassessors\Photos Temp\uploaded photos""\\" + FileToUpload12.filename, FileToUpload12.data) 
    	file.from_blob("c:\kmassessors\Photos Temp\uploaded photos""\\" + FileToUpload13.filename, FileToUpload13.data) 
    	file.from_blob("c:\kmassessors\Photos Temp\uploaded photos""\\" + FileToUpload14.filename, FileToUpload14.data) 
    	file.from_blob("c:\kmassessors\Photos Temp\uploaded photos""\\" + FileToUpload15.filename, FileToUpload15.data) 
    	file.from_blob("c:\kmassessors\Photos Temp\uploaded photos""\\" + FileToUpload16.filename, FileToUpload16.data) 
    	file.from_blob("c:\kmassessors\Photos Temp\uploaded photos""\\" + FileToUpload17.filename, FileToUpload17.data) 
    	file.from_blob("c:\kmassessors\Photos Temp\uploaded photos""\\" + FileToUpload18.filename, FileToUpload18.data) 
    	file.from_blob("c:\kmassessors\Photos Temp\uploaded photos""\\" + FileToUpload19.filename, FileToUpload19.data) 
    	file.from_blob("c:\kmassessors\Photos Temp\uploaded photos""\\" + FileToUpload20.filename, FileToUpload20.data)
    	file.from_blob("c:\kmassessors\Photos Temp\uploaded photos""\\" + FileToUpload21.filename, FileToUpload21.data) 
    	file.from_blob("c:\kmassessors\Photos Temp\uploaded photos""\\" + FileToUpload22.filename, FileToUpload22.data) 
    	file.from_blob("c:\kmassessors\Photos Temp\uploaded photos""\\" + FileToUpload23.filename, FileToUpload23.data) 
    	file.from_blob("c:\kmassessors\Photos Temp\uploaded photos""\\" + FileToUpload24.filename, FileToUpload24.data)
    	file.from_blob("c:\kmassessors\Photos Temp\uploaded photos""\\" + FileToUpload25.filename, FileToUpload25.data) 
    	file.from_blob("c:\kmassessors\Photos Temp\uploaded photos""\\" + FileToUpload26.filename, FileToUpload26.data) 
    	file.from_blob("c:\kmassessors\Photos Temp\uploaded photos""\\" + FileToUpload27.filename, FileToUpload27.data) 
    	file.from_blob("c:\kmassessors\Photos Temp\uploaded photos""\\" + FileToUpload28.filename, FileToUpload28.data)
    	file.from_blob("c:\kmassessors\Photos Temp\uploaded photos""\\" + FileToUpload29.filename, FileToUpload29.data) 
    	file.from_blob("c:\kmassessors\Photos Temp\uploaded photos""\\" + FileToUpload30.filename, FileToUpload30.data) 
    	    
    
        msg = "<a href=\"/" "\" target=\"_blank\">" "</a> Your Files Were Uploaded<br /><br />" 
        
    end if 
    
    %> 
    
     
    
    <head>
    
    <title>File Upload example</title>
    
    </head> 
    
    <body bgcolor="#ffffff"> 
    
    <%a5 ? msg %> 
    
    <form action="<%a5 ? request.script_name %>" method="post" enctype="multipart/form-data">
    
    <p><strong>Photo 01 </strong>
    <input type="file" name="FileToUpload" >&nbsp;<strong>Photo 02
    
    <input type="file" name="FileToUpload2" >&nbsp;</strong>
    </p><p>
    <strong>Photo 03 </strong>
    
    <input type="file" name="FileToUpload3" >&nbsp;<strong>Photo 04 </strong>
    
    <input type="file" name="FileToUpload4" >
    </p><p>
    <strong>Photo 05</strong>
    
    <input type="file" name="FileToUpload5" >&nbsp;<strong>Photo 06</strong> 
    
    <input type="file" name="FileToUpload6" >
    <p></p>
    <strong>Photo 07</strong>
    
    <input type="file" name="FileToUpload7" >&nbsp;<strong>Photo 08</strong> 
    
    <input type="file" name="FileToUpload8" > 
    <p></p>
    <p><strong>Photo 09</strong>
    
    <input type="file" name="FileToUpload9" >&nbsp;<strong>Photo 10</strong> 
    
    <input type="file" name="FileToUpload10" > 
    </p>
    <p><strong>Photo 11</strong>
    
    <input type="file" name="FileToUpload11" >&nbsp;<strong>Photo 12</strong> 
    
    <input type="file" name="FileToUpload12" > 
    </p>
    <p><strong>Photo 13</strong>
    
    <input type="file" name="FileToUpload13" >&nbsp;<strong>Photo 14</strong> 
    
    <input type="file" name="FileToUpload14" > 
    </p>
    <p><strong>Photo 15</strong>
    
    <input type="file" name="FileToUpload15" >&nbsp;<strong>Photo 16</strong> 
    
    <input type="file" name="FileToUpload16" > 
    </p>
    <p><strong>Photo 17</strong>
    
    <input type="file" name="FileToUpload17" >&nbsp;<strong>Photo 18</strong> 
    
    <input type="file" name="FileToUpload18" > 
    </p>
    <p><strong>Photo 19</strong>
    
    <input type="file" name="FileToUpload19" >&nbsp;<strong>Photo 20</strong> 
    
    <input type="file" name="FileToUpload20" > 
    </p>
    <p><strong>Photo 21</strong>
    
    <input type="file" name="FileToUpload21" >&nbsp;<strong>Photo 22</strong> 
    
    <input type="file" name="FileToUpload22" > 
    </p>
    <p><strong>Photo 23</strong>
    
    <input type="file" name="FileToUpload23" >&nbsp;<strong>Photo 24</strong> 
    
    <input type="file" name="FileToUpload24" > 
    </p>
    <p><strong>Photo 25</strong>
    
    <input type="file" name="FileToUpload25" >&nbsp;<strong>Photo 26</strong> 
    
    <input type="file" name="FileToUpload26" > 
    </p>
    <p><strong>Photo 27</strong>
    
    <input type="file" name="FileToUpload27" >&nbsp;<strong>Photo 28</strong> 
    
    <input type="file" name="FileToUpload28" > 
    </p>
    <p><strong>Photo 29</strong>
    
    <input type="file" name="FileToUpload29" >&nbsp;<strong>Photo 30</strong> 
    
    <input type="file" name="FileToUpload30" ><br >
    
    <input type="submit" name="cmd" value="Upload Photos"> 
    </p> 
    
    </form> 
    
    </body> 
    
    </html>
    Any help reagarding this would be apprecaited

    Thank-you

    John

    #2
    Re: uploading files

    You need to test the field for a value and only proceed if a value exists. Here is what I use in the same situation:

    if FileToUpload.filename<>""
    file.from_blob("c:\kmassessors\Photos Temp\uploaded photos""\\" + FileToUpload.filename, FileToUpload.data)
    end if

    etc.

    You need this also becuse you have no control over if they skip line, using field 1, 5, 7 ,8 as an example.
    Steve Wood
    See my profile on IADN

    Comment


      #3
      Re: uploading files

      Hi Steve

      Thanks for that, will give it a try

      John

      Comment

      Working...
      X